我有两个数组,需要将它们合并或合并为一个数组。
$array1 = array(
array("Account 1", "EUR", "100", "333"),
array("Account 2", "EUR", "200", "444")
);
$array2 = array(
array("Account 1", "EUR", "100", "111"),
array("Account 2", "EUR", "200", "222")
);
$array = array_merge($array1,$array2);
然后我的结果是:
[["Account 1","EUR","100","333"],["Account 2","EUR","200","444"],["Account 1","EUR","100","111"],["Account 2","EUR","200","222"]]
我希望像这样:
[["Account 1","EUR","100","333","111"],["Account 2","EUR","200","444","222"]]
如何制作?任何建议将不胜感激。
当年话下
UYOU