If you read the manual on strpos you would have seen this warning
Quote:
|
Originally Posted by php.net
This function may return Boolean FALSE, but may also return a non-Boolean value which evaluates to FALSE. Please read the section on Booleans for more information. Use the === operator for testing the return value of this function.
|
and then they gave an example so your statement should look like this
PHP Code:
if(strpos($haystack, $needle) !== false){ ... }