我有 2 个数组。是否可以创建输出数组并将键/值从第一个添加到第二个?我的数组看起来像:
首先:
Array
(
[0] => Array
(
[id] => 11
[expire] => undefined
)
[1] => Array
(
[id] => 12
[expire] => undefined
)
[2] => Array
(
[id] => 6
[expire] => 8
)
[3] => Array
(
[id] => 10
[expire] => 4
)
)
第二:
Array
(
[0] => Array
(
[id] => 6
[realname] => to_es.gif
[extension] => gif
[filesize] => 57885
)
[1] => Array
(
[id] => 10
[realname] => to_joomla_2_customer_view.gif
[extension] => gif
[filesize] => 77182
)
[2] => Array
(
[id] => 11
[realname] => to_nl.gif
[extension] => gif
[filesize] => 10990
)
[3] => Array
(
[id] => 12
[realname] => to_PL_1.gif
[extension] => gif
[filesize] => 52826
)
)
我如何获得输出数组:
Array
(
[0] => Array
(
[id] => 6
[realname] => to_es.gif
[extension] => gif
[filesize] => 57885
[expire] => 8
)
[1] => Array
(
[id] => 10
[realname] => to_joomla_2_customer_view.gif
[extension] => gif
[filesize] => 77182
[expire] => 4
)
[2] => Array
(
[id] => 11
[realname] => to_nl.gif
[extension] => gif
[filesize] => 10990
[expire] => undefined
)
[3] => Array
(
[id] => 12
[realname] => to_PL_1.gif
[extension] => gif
[filesize] => 52826
[expire] => undefined
)
)