PHP 数组函数 array_merge_recursive()
PHP 数组函数 array_merge_recursive()
<?php
$input1 = array("a"=>"Horse","b"=>"Cat","c"=>"Dog");
$input2 = array("d"=>"Cow","a"=>"Cat","e"=>"elephant");
print_r(array_merge_recursive($input1,$input2));
?>
<?php
$input1 = array("a"=>"Horse","b"=>"Cat","c"=>"Dog");
$input2 = array("d"=>"Cow","a"=>"Cat","e"=>"elephant");
print_r(array_merge_recursive($input1,$input2));
?>