Forum Moderators: coopster
I want to extract the ten most common words out of a number of texts. The texts are located in a Mysql table and the rest of the website is written in php. How can I best solve this? Should I make a separate table with these keywords? Is there an easy way to extract the ten most common words?
Regards,
Turbo
Making an extra field sounds like a better idea to me than a whole extra table, if it's the second case. If it's the first case, it depends on whether you want to make this determination 'in one go' or if you want to 'save your work' along the way and go incrementally.
To do this I'd probably use preg_split with [a-zA-Z] somewhere in my regex.