Multiple Arrays, how to find and count duplicates?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Deseree
Forum Commoner
Posts: 84
Joined: Mon Feb 13, 2006 11:35 pm

Multiple Arrays, how to find and count duplicates?

Post by Deseree »

Hi guys.....

I have say 500-1000 arrays, and I want to count and see which arrays have duplicates.....


Any ideas fellas? I can't even quite think out an alogrithm neither what php code to use.....

Say starting out with 50 arrays, of 600 entries in each array. I need to sort and count duplicates for each array first off, then I need to compare the ENTIRE 50 arrays with all of the others.... and then when a value is in 20% of more of the total number of arrays, it saves it into a new array called duplciates.

Help please :) ?

~deseree
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Post Reply