note 35918 deleted from function.array-intersect-assoc by pollita
| From: | pollita@php.net | Date: | Fri, 19 Sep 2003 04:32:11 +0000 |
| Subject: | note 35918 deleted from function.array-intersect-assoc by pollita | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-56741@lists.php.net to get a copy of this message | ||
Note Submitter: shadowfaxx@CC.com
----
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
)