This question already has an answer here:
- How to Flatten a Multidimensional Array? 27 answers
I have an array in php like the following
Array
(
[0] => Array
(
[0] => 0
[1] => 4
)
[1] => Array
(
[0] => 5
[1] => 0
)
[2] => Array
(
[0] => 0
[1] => 8
)
[3] => Array
(
[0] => 10
[1] => 27
)
)
How can I convert it into the following format.
array(0,4,5,0,0,8,10,27);
</div>