标签:
1 /** 2 * PHP按值合并数组 3 * 4 */ 5 function my_array_merge(&$array1, &$array2) { 6 $result = Array(); 7 foreach($array1 as $key => &$value) { 8 $result[$key] = array_merge($value, $array2[$key]); 9 } 10 return $result; 11 }
标签:
原文地址:http://www.cnblogs.com/719907411hl/p/4536442.html