Hi,
I have been playing about with the resulting word list for a while but ı can not work out how to get the number times the words occur in an array.
For example
$words = "Mary Had A Little Lamb and She LOVED It So much she had a fit and killed the lamb. She also loved lamb chops you see";
First I would this:
$words = strtolower($words);
...
$list = explode(" ", $words);
From here what would you recommend I do to get this:
mary 1
little 1
it 1
so 1
much 1
fit 1
killed 1
also 1
chops 1
you 1
see 1
a 2
had 2
and 2
loved 2
lamb 3
she 3
Any ideas ?