I've an array like below: I want to make it single array format.
Array
(
[0] => Array
(
[0] => 0
[1] => 1
[2] => 2
[3] => 3
[4] => 10
)
[1] => Array
(
[0] => 0
[1] => 1
[2] => 2
[3] => 3
)
)
Would like to get output like below.
[0] => Array
(
[0] => 0
[1] => 1
[2] => 2
[3] => 3
[4] => 10
)
[1] => Array
(
[0] => 0
[1] => 1
[2] => 2
[3] => 3
)
How can i achieve my preferred format ?? Any help would be appreciated.
foreach()and get the sub-array value. BTW your question is bit unclear. Clarify a bit more pls0and1and they have sub arrays the same too.$arr1 = $main[0]and$arr2 = $main[1]? Where$mainis the main array you have