note 35918 added to function.array-intersect-assoc

From: Date: Fri, 19 Sep 2003 03:25:00 +0000
Subject: note 35918 added to function.array-intersect-assoc
Groups: php.notes 
Request: Send a blank email to php-notes+get-56739@lists.php.net to get a copy of this message
In the above explanation of the example, the text should read: ==> The value "red" is not returned because in $array1 it's key is 0 while the key of "red" in $array2 is 1. i.e. The key of 'red' in array1 is 0, not 2 as indicated. This can be seen by using a print_r() command to display the arrays and their keys as below Array1 ( [a] => green [b] => brown [c] => blue [0] => red ) Array2 ( [a] => green [0] => yellow [1] => red ) ---- Manual Page -- http://www.php.net/manual/en/function.array-intersect-assoc.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35918 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35918&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35918&report=yes

« previous php.notes (#56739) next »