array_replace 不会处理二级,只会把VALUE看成一个整体,但array_replace_recursive不会
CODE
$a1=array("a"=>array("red"),"b"=>array("green","blue"),);
$a2=array("a"=>array("yellow"),"b"=>array("black"));
$result=array_replace_recursive($a1,$a2);
show($result);
$result=array_replace($a1,$a2);
show($result);
##输出
Array
(
[a] => Array
(
[0] => yellow
)
[b] => Array
(
[0] => black
[1] => blue
)
)
Array
(
[a] => Array
(
[0] => yellow
)
[b] => Array
(
[0] => black
)
)