我如何组合两个数组,它应该像下面的例子一样排序?
我想拿这几个数组:
Array
(
[0] => Array
(
[0] => ZE
[1] => CD
[2] => 97
)
[1] => Array
(
[0] => ZE
[1] => CD
[2] => 1908923
)
[2] => Array
(
[0] => ZD
[1] => CD
[2] => 23
)
)
我希望它应该是这样的:
Array
(
[0] => Array
(
[ZE] => Array
(
[0] => Array
(
[0] => CD
[1] => 97
)
[1] => Array
(
[0] => CD
[1] => 1908923
)
)
)
[1] => Array
(
[0] => ZD
[1] => CD
[2] => 23
)
)
我试图做一些循环,但没有结果,请帮忙
谢谢