note 30052 added to function.array-intersect-assoc
| From: | bogdan at rack1 dot php dot net | Date: | Wed, 05 Mar 2003 11:36:53 +0000 |
| Subject: | note 30052 added to function.array-intersect-assoc | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44866@lists.php.net to get a copy of this message | ||
There will be interesting to view a combination of the two functions [array_intersect() and
array_intersect_assoc()] in order to obtain the intersection of two multidimensional arrays.
Array
(
[1] => 1, 5, 10, 18
[2] => 2, 7, 10
)
Array
(
[1] => 2, 4, 5, 18, 25
[3] => 2, 10
)
and the intersection:
Array
(
[1] => 5, 18
)
--
http://www.php.net/manual/en/function.array-intersect-assoc.php
http://master.php.net/manage/user-notes.php?action=edit+30052
http://master.php.net/manage/user-notes.php?action=delete+30052
http://master.php.net/manage/user-notes.php?action=reject+30052