Source Code:
(back to article)
<?php $array1 = array("a" => array("b" => "c")); $array2 = array("a" => array("b" => "d")); $result = array_replace_recursive($array1, $array2); print_r($result); ?>
Result:
Report an issue