Source Code:
(back to article)
<?php $array1 = array("a" => "apple", "b" => "banana"); $array2 = array("a" => "peach", "c" => "cherry"); $array3 = array("d" => "date", "b" => "blueberry"); $result = array_replace($array1, $array2, $array3); print_r($result); ?>
Result:
Report an issue