16/07/2007, 12:58
|
| | Fecha de Ingreso: julio-2005
Mensajes: 5
Antigüedad: 19 años, 6 meses Puntos: 0 | |
Re: Porque no funciona? (Muy sencillo) Solo tienes que imprimir el array dentro del while.
<?php
$valor_uno =2;
$indice_uno = 0;
while ($valor_uno <11)
{$array_uno = array($indice_uno => $valor_uno);
$valor_uno = $valor_uno + 2;
$indice_uno = $indice_uno + 1;
print_r ($array_uno);
}
?> |