|
-
Feb 14th, 2007, 07:44 AM
#1
Thread Starter
New Member
Counting recurring elements in an array
Hi all,
So i've got an array to hold names and I want to count how many times a name is held in the array. For example,
John
John
James
John
James
Jack
Luke
John
Jack
Luke
If this was my array then I need a way to count how many times each name appears:
John = 4
James = 2
Jack = 2
Luke = 2
Does anyone know of a way to do this? Its reallllyyyyy important!
Regards,
james
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|