(PHP 3>= 3.0.8, PHP 4 , PHP 5)
Esta función mezcla (cambia aleatoriamente el orden de los elementos de) una matriz.
Ejemplo 1. Ejemplo de shuffle()
$numeros = range (1,20);srand (time());shuffle ($numeros);while (list(, $numero) = each ($numeros)) { echo "$numero ";}
Vea también: arsort(), asort(), ksort(), rsort(), sort() y usort().
Subir
Hosting Argentina $7/mes www.super-hosting.com.ar