RE: [PHP] Finding duplicates in arrays
| From: | Jay Blanchard | Date: | Thu, 24 Jun 2004 18:40:19 +0000 |
| Subject: | RE: [PHP] Finding duplicates in arrays | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-188990@lists.php.net to get a copy of this message | ||
[snip]
Given two arrays, I want to find the "records" which are duplicates.
What is the simplest approach? And should I use a different approach
to compare three or more arrays to find only duplicates that occur in
all of them?
[/snip]
http://us2.php.net/manual/en/function.array-diff.php
The manual can be your friend.