hi guys, stuck as usual..
I have an array of about 100 product ids, some of my stores stock them some dont. What Id like to do is find the most commonly available products across all stores.
So I have product id's such as s1,s2,s3 etc.. in an array.
How would I loop through them, take a count of duplicates and then echo out the results based on most commonly stocked items?
eg...
s1 (18 stores)
s9 (12 stores)
s2 (10 stores)
etc etc.
Im stuck on where to begin. Any ideas?