[PHP] how to calculate frequency of words in array?

2002-03-08 Thread Simon De Deyne

Does anybody has a clever way to summarize the
number of different words (with multiple occurences)
from an array into an  array with all the different words
and the times they occured?

Thanks a lot!
Simon


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] how to calculate frequency of words in array?

2002-03-08 Thread Andrey Hristov

array_count_values()

Best regards,
Andrey Hristov

On Friday 08 March 2002 04:45 pm, you wrote:
 Does anybody has a clever way to summarize the
 number of different words (with multiple occurences)
 from an array into an  array with all the different words
 and the times they occured?

 Thanks a lot!
 Simon

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php