php - How do I convert a string to an associative array of its keywords
- by Steven
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.