Quick Array challenge
Posted: Wed Sep 10, 2003 3:06 am
Arrays are not really my forte, so i'm calling on a little help.
I have an Array called $who_sorted.
This Array could contain something like:
Mark
Mark
Mark
Claire
Claire
Sean
Claire
Mark
Sean
Sean
Sean
Now, what i need to do is count how many times each name occurs in the Array bearing in mind i don't know what names are going to be in it.
Any ideas?
Thanks
Mark
I have an Array called $who_sorted.
This Array could contain something like:
Mark
Mark
Mark
Claire
Claire
Sean
Claire
Mark
Sean
Sean
Sean
Now, what i need to do is count how many times each name occurs in the Array bearing in mind i don't know what names are going to be in it.
Any ideas?
Thanks
Mark