<?php $a = array("a" => "apple", "b" => "banana"); $b = array("a" => "pear", "b" => "strawberry", "c" => "cherry"); $c = $a + $b; // Union of $a and $b $c = array_replace($b + $a);
You have javascript disabled. You will not be able to edit any code.