![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
04/07/2013, 03:23
|
![Avatar de andy98](http://static.forosdelweb.com/customavatars/avatar447950_1.gif) | | | Fecha de Ingreso: diciembre-2011
Mensajes: 32
Antigüedad: 13 años, 1 mes Puntos: 2 | |
Respuesta: Problema con array_rand $rand_keys = array_rand($a, 4);
asort($rand_keys);
for ($i = 0; $i < 4; $i++) {
if ($i < 3)
echo $rand_keys[$i]." - ";
else
echo $rand_keys[$i];
}
He hecho este cambio y aun así sigue devolviendo 0 y 0 no existe en el array.
Super-raro |