Cita:
Iniciado por mogurbon jajaja le quite el unset
Código PHP:
<?
$valor=0;
$N=10;
for ($z=1; $z<=$N;$z++ ){
$valor++; // es una operacion cualquiera que me arroja valores diferentes segun avance el bucle
$array[]=$z;
$array[]=$valor;
$ARREGLO[]=$array;
unset($array);
}
print_r($ARREGLO);
?>
da de resultado esto:
Array ( [0] => Array ( [0] => 1 [1] => 1 ) [1] => Array ( [0] => 2 [1] => 2 ) [2] => Array ( [0] => 3 [1] => 3 ) [3] => Array ( [0] => 4 [1] => 4 ) [4] => Array ( [0] => 5 [1] => 5 ) [5] => Array ( [0] => 6 [1] => 6 ) [6] => Array ( [0] => 7 [1] => 7 ) [7] => Array ( [0] => 8 [1] => 8 ) [8] => Array ( [0] => 9 [1] => 9 ) [9] => Array ( [0] => 10 [1] => 10 ) )
jeje ya me habias rayado :S probare, aunque pensadolo bien se me ha ocurrido otra solucion, veremos.. gracias