我想将文件名合并到同一个键中。下面是两个数组,我尝试使用 array_merge 但它没有合并到同一个键中
Array
(
[0] => Array
(
[episode_id] => 2
[episode_number] => 1
[series] => 2012
)
[1] => Array
(
[episode_id] => 2
[episode_number] => 2
[series] => 2013
)
)
Array
(
[0] => Array
(
[filename] => Enq9nNGnMFY
)
[1] => Array
(
[filename] => Enq9nsdfdsNGnMFY
)
)
预期的输出应该是
Array
(
[0] => Array
(
[episode_id] => 2
[episode_number] => 1
[series] => 2012
[filename] => Enq9nNGnMFY
)
[1] => Array
(
[episode_id] => 2
[episode_number] => 2
[series] => 2013
[filename] => Enq9nsdfdsNGnMFY
)
)
有人能帮忙吗 !!!!!!!!!!