Reputation: 203
i having a nested output like this
$arr = array();
$arr = array (size=2)
0 =>
array (size=2)
0 => string '28' (length=2)
1 => string '7973' (length=4)
1 =>
array (size=1)
0 => string '4595' (length=4)
my expected output like this
$new_array = array
0 => 28
1 => 7973
2 => 4595
Pls help me to solve this...
advance thanks....
Upvotes: 0
Views: 336
Reputation: 14423
This is just as simple as doing an array_merge:
array_merge($arr[0], $arr[1]);
Upvotes: 2