I has array when i use var_dump
function to print array show me the below result
var_dump($val);
the result is
array (size=1)
0 => string '6' (length=1)
array (size=1)
0 => string '6' (length=1)
array (size=1)
0 => string '4' (length=1)
as see the $val
contains three different array that have the zero index key
how i can merge them in one array and change or rearrange the zero index to 0
, 1
and 2
EDITED
for more information when i use print_r($val)
the result as below
Array ( [0] => 6 ) Array ( [0] => 6 ) Array ( [0] => 4 )
but the number of array in $val
various not every time ins three arrays would be 4 array or 5 array etc..
how i can merge all in one array and index of them?