RE: [PHP] Finding duplicates in arrays

2004-06-24 Thread Jay Blanchard
[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

RE: [PHP] Finding duplicates in arrays

2004-06-24 Thread Jay Blanchard
[snip] [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

Re: [PHP] Finding duplicates in arrays

2004-06-24 Thread Geethanandh Kandasamy
use array_unique http://us4.php.net/manual/en/function.array-unique.php On Thu, 24 Jun 2004 10:33:04 -0800, Chris Lott [EMAIL PROTECTED] wrote: 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