<html>
<body>
$a1=array("a"=>array("red"),"b"=>array("green","blue"),);
$a2=array("a"=>array("yellow"),"b"=>array("black"));
$result=array_replace_recursive($a1,$a2);
print_r($result);
$result=array_replace($a1,$a2);
print_r($result);
</body>
<!-- Mirrored from www.w3schools.com/php/phptryit.asp?filename=tryphp_func_array_replace_recursive3 by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:50:52 GMT -->
</html>