A fairly simple question. What\'s the difference between:
$merged = array_merge($array1, $array2);
and
$merged = $array1 +
The difference is:
The + operator takes the union of the two arrays, whereas the array_merge function takes the union BUT the duplicate keys are overwritten.
+
array_merge