php - How do I convert a string to an associative array of its keywords
Posted
by Steven
on Stack Overflow
See other posts from Stack Overflow
or by Steven
Published on 2010-04-29T18:41:28Z
Indexed on
2010/04/29
18:47 UTC
Read the original article
Hit count: 454
take this string as an example: "will see you in London tomorrow and Kent the day after tomorrow".
How would I convert this to an associative array that contains the keywords as keys, whilst preferably missing out the common words, like this:
Array ( [tomorrow] => 2 [London] => 1 [Kent] => 1)
Any help greatly appreciated.
© Stack Overflow or respective owner