Ver Mensaje Individual
  #4 (permalink)  
Antiguo 16/07/2007, 12:47
Avatar de fatherjuan
fatherjuan
 
Fecha de Ingreso: mayo-2005
Ubicación: Estado de México
Mensajes: 132
Antigüedad: 18 años, 10 meses
Puntos: 0
Re: Porque no funciona? (Muy sencillo)

Código PHP:
$valor_uno =2;
$indice_uno 0;

$array_uno = array(array('indice'=> $indice_uno'valor' => $valor_uno));


while (
$valor_uno 11)
    {
    
    
$valor_uno+=2;
    
$indice_uno++;
    
    
array_push($array_uno, array('indice'=>$indice_uno'valor' => $valor_uno));
    
    }

print_r($array_uno); 
__________________
El principio de la sabiduría es el temor de Jehová
Visita mi Blog