[Solved] strpos not finding one word in a string


strpos returns the index of the found string. In this case the index is 0 and your check for == true will fail. Try:

strpos($where, $what) !== false

The documentation provides more information.

solved strpos not finding one word in a string