标签:
function array_merge_recursive_new() { $arrays = func_get_args(); $base = array_shift($arrays); foreach ($arrays as $array) { reset($base); //important while (list($key, $value) = @each($array)) { if (is_array($value) && @is_array($base[$key])) { $base[$key] = array_merge_recursive_new($base[$key], $value); } else { $base[$key] = $value; } } } return $base; }
http://www.yiibai.com/manual/php/function.array-merge-recursive.html
标签:
原文地址:http://www.cnblogs.com/lixiuran/p/4311620.html