Rumah >pembangunan bahagian belakang >tutorial php >array_merge掉失空数组,该如何解决
array_merge掉失空数组
array_merge掉失空数组
怎么保留全面初始化模板数组的所有数据?
------解决方案--------------------
print_r(array_merge_recursive($a, $b));
Array
(
[color_and_size] => Array
(
[colors] => Array
(
[0] => 2001
[1] => 2002
)
[sizes] => Array
(
)
)
)