like I have string "I want to buy a cake with $1000"
so if I search by "1000" should be return true, but if I search "100" or "10000" it should be return false
Another example:
"I was enjoying the music" if I search "enjoy" it should be return false, but if I search "enjoying" should be return true
I was trying to use if(strpos($string, $text ) !== false)
but it is not working, however it always return true, if the specific word has extra alphabet behind or in front of the word.