diff --git a/reference/array/functions/array-intersect-assoc.xml b/reference/array/functions/array-intersect-assoc.xml index 36e1c2ae03..5933e0520f 100644 --- a/reference/array/functions/array-intersect-assoc.xml +++ b/reference/array/functions/array-intersect-assoc.xml @@ -71,7 +71,7 @@ "green", "b" => "brown", "c" => "blue", "red"); -$array2 = array("a" => "green", "yellow", "red"); +$array2 = array("a" => "green", "b" => "yellow", "blue", "red"); $result_array = array_intersect_assoc($array1, $array2); print_r($result_array); ?> @@ -94,7 +94,8 @@ Array The value "red" is not returned because in $array1 its key is 0 while the key of "red" in $array2 is - 1. + 1, and the key "b" is not returned + because its values are different in each array. The two values from the key => value pairs are