我有一個mutidimensional陣列得到的結果類似下面給出如何在PHP中將二維數組轉換爲一維數組?
Array
(
[0] => Array
(
[0] => 70
)
[1] => Array
(
[0] => 67
)
[2] => Array
(
[0] => 75
[1] => 73
[2] => 68
)
[3] => Array
(
[0] => 68
)
[4] => Array
(
[0] => 76
)
)
但我需要將其轉換爲單一陣列
而且我想在轉換成一維數組作爲
Array
(
[0] => 70
[1] => 67
[2] => 75
[3] => 73
[4] => 68
[5] => 68
[6] => 76
)
如何使用php函數進行轉換?
還有其他方法可以做到嗎?
http://whathaveyoutried.com/的 – Oussama
可能重複的[如何「變平」的多維陣列,以簡單的一個在PHP?](http://stackoverflow.com/questions/526556/how-to- flatten-a-multi-dimensional-array-to-simple-in-php) –