Re: [PHP] Counting the occurences of items in an array

2006-12-24 Thread Dotan Cohen
Thanks for the link to the function. Know that I did RTFM before posting, but I missed that one. Dotan Cohen http://lyricslist.com/lyrics/artist_albums/219/xyz.php http://simplesniff.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Counting the occurences of items in an array

2006-12-24 Thread tedd
At 8:35 PM +0200 12/24/06, Dotan Cohen wrote: Has this wheel been invented, but simpler? I've an array of words that I'd like to know how many occurences of each there are. For instance: $fruits = array( "lemon", "orange", "banana", "apple", "orange", "banana", "orange");

Re: [PHP] Counting the occurences of items in an array

2006-12-24 Thread Sumeet
Dotan Cohen wrote: Has this wheel been invented, but simpler? I've an array of words that I'd like to know how many occurences of each there are. For instance: $fruits = array( "lemon", "orange", "banana", "apple", "orange", "banana", "orange"); And I'd like to create th

[PHP] Counting the occurences of items in an array

2006-12-24 Thread Dotan Cohen
Has this wheel been invented, but simpler? I've an array of words that I'd like to know how many occurences of each there are. For instance: $fruits = array( "lemon", "orange", "banana", "apple", "orange", "banana", "orange"); And I'd like to create this: $fruit_count = a