"apple", "b"=>"ball", "c"=>"cat"); $array2 = array("a"=>"airplane", "b"=>"banana", "camel", "dog"); // Performing array replacement $result = array_replace($array1, $array2); print_r($result); ?>