From b66067051c6fea8b168df6e79814be2efeca11eb Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Tue, 2 Aug 2011 09:33:49 +0000 Subject: [PATCH] Fix doc bug #55343 (documentation needs to be more clear) by making the array_intersect_assoc() example more explicit. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@314091 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/array/functions/array-intersect-assoc.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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