$a = array(2,3,4); $b = array(4,3,2); $temp = array(); $temp = array_merge_recursive($temp,$a); $temp = array_merge_recursive($temp,$b);
运行结果
Array ( [0] => 2 [1] => 3 [2] => 4 [3] => 4 [4] => 3 [5] => 2 )