Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/06/2011, 10:32
Avatar de spider_boy
spider_boy
 
Fecha de Ingreso: diciembre-2003
Ubicación: Chile
Mensajes: 1.855
Antigüedad: 20 años, 4 meses
Puntos: 89
Respuesta: Problema con array

Código PHP:
Ver original
  1. $arrayConOchoElementos = array(...);
  2. shuffle($arrayConOchoElementos);
  3. for($i = 0; $i < 4; $i++) {
  4.      echo $arrayConOchoElementos[$i];
  5. }

No le veo lo difícil .
__________________
Nunca te olvidaré mi negra hermosa. Te extraño demasiado.