Hola GatorV ya probe con array_slice()
pero seguro lo estoy haciendo mal
lo estoy Haciendo asi
Código PHP:
Ver original $serial_id_incre=array(1,2,3,4,5,6,7,8,9,10);
foreach($cantidad as $can)
{
for($i=0;$i<$can;$i++)
{
}
}
y me devuelve esto
Código PHP:
Ver originalArray( [0] => 1 [1] => 2 [2] => 3 [3] => 4)Array( [0] => 1 [1] => 2 [2] => 3 [3] => 4)Array( [0] => 1 [1] => 2 [2] => 3 [3] => 4)Array( [0] => 1 [1] => 2 [2] => 3 [3] => 4)Array( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 [5] => 6)Array( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 [5] => 6)Array( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 [5] => 6)Array( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 [5] => 6)Array( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 [5] => 6)Array( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 [5] => 6)
saludos muchas gracias