php - What algorithm can I use to solve this case(string matching/word matching)?
I wanna build web forum for my mini thesis project. The system will work like this "question/discussion will be matched with keyword that exist in tb_keyword, if it's found 2 matched words or more, question/discussion will be sent into tb_post". I've tried to solve this problem with brute force algorithm but it's not working. I convert data from input to array and as well as keyword in tb_keyword. What algorithm can I use to solve this problem?
input : metode or algorithm can solve this problem?
| id | keyword |
How to make all of them can be compared like this:
In that example metode and algorithm exist in tb_keyword so it will be sent into tb_post.