我有 2 个具有相同结构的独立多维数组。例子:
Array
(
[0] => Array
(
[uploadData] => 1234 Main St
)
[1] => Array
(
[uploadData] => 5678 Elm St
)
[2] => Array
(
[uploadData] => 9879 New St
)
[3] => Array
(
[uploadData] => 9876 Shady Lane
)
)
Array
(
[0] => Array
(
[uploadData] => Orlando
)
[1] => Array
(
[uploadData] => Tampa
)
[2] => Array
(
[uploadData] => Miami
)
[3] => Array
(
[uploadData] => West Palm Beach
)
)
我只需要将它们放入 1 个如下所示的新数组中:
Array
(
[0] => Array
(
[uploadData] => 1234 Main St Orlando
)
[1] => Array
(
[uploadData] => 5678 Elm St Tampa
)
[2] => Array
(
[uploadData] => 9879 New St Miami
)
[3] => Array
(
[uploadData] => 9876 Shady Lane West Palm Beach
)
)
我一直在尝试使用array_merge
,但我无法让它工作。