Ver Mensaje Individual
  #7 (permalink)  
Antiguo 01/12/2004, 09:45
kepawe
 
Fecha de Ingreso: agosto-2004
Mensajes: 157
Antigüedad: 19 años, 7 meses
Puntos: 5
Hola caricatos y furoya.

Te envío el método rotarD.

Código PHP:

Array.prototype.rotarD = function() {
   if(
this.length 0){
     var 
last_element this[this.length-1]
     for(var 
ctr this.length -1ctr 0ctr--){
           
this[ctr] = this[ctr-1]
     }
     
this[0] = last_element
   
}

Espero que te sirva.
Saludos