这里为大家举一个多维数组递归遍历的例子,供大家参考。
运行结果:
Array
(
[1] => Array
(
[0] => 11
[1] => 12
[2] => 13
[14] => Array
(
[0] => 141
[1] => 142
)
)
[2] => 2
[3] => 3
[4] => 4
[5] => 5
)
11
12
13
141
142
2
3
4
5