PHP几种合并数组的不同效果

PHP几种合并数组的不同效果

array_merge_recursive — 递归地合并一个或多个数组 'No1'];$second = [ 'key' => 'No2'];print_r(array_merge_recursive($first, $second));结果:Array( [key] => Array ( [0] => No1 [. 阅读详情