Multiple Arrays, how to find and count duplicates?
Posted: Sat Mar 04, 2006 4:15 pm
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
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