这是原始数组:
Array
(
[0] => Array
(
[0] => ID
[1] => NAME
[2] => GROUP
)
[1] => Array
(
[0] => 1221
[1] => 500
[2] => 2
)
[2] => Array
(
[0] => 1654
[1] => 33
[2] => 23
)
)
将其转换为:
Array
(
[0] => Array
(
[ID] => 1221
[NAME] => 500
[GROUP] => 2
)
[1] => Array
(
[ID] => 1654
[NAME] => 33
[GROUP] => 23
)
)
当然有超过 3 个标题和超过 2 个数据数组。有没有一种自动的方法可以有效而干净地做到这一点?