From 1a756d07d0db539b0e32acaa23b7021b11221cc6 Mon Sep 17 00:00:00 2001 From: Jeroen van Wolffelaar Date: Fri, 14 Sep 2001 23:25:36 +0000 Subject: [PATCH] Add the note to array_intersect too git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@57558 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/array.xml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/functions/array.xml b/functions/array.xml index c230b4fcb5..2ebce8228c 100644 --- a/functions/array.xml +++ b/functions/array.xml @@ -1,5 +1,5 @@ - + Array Functions Arrays @@ -366,6 +366,20 @@ $result = array_intersect ($array1, $array2); This makes $result have array ("a" => "green", "red"); + + + Two elements are considered equal if and only if + (string) $elem1 === (string) $elem2. In words: + when the string representation is the same. + + + + + + This was broken in PHP 4.0.4! + + + See also array_diff.