View Single Post
Old 06-30-2002, 03:48 PM   PM User | #8
mordred
Senior Coder


 
Join Date: Jun 2002
Location: frankfurt, german banana republic
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
mordred is an unknown quantity at this point
...but being exact, the return value of strstr() isn't a boolean true either - it's only casted to true in the if-statement.

Apparently Jeewhizz confused strstr() with strpos(), because with strpos() you have to be wary of a returned 0 which gets casted to false, that's why you should use !== instead of !=.

http://www.php.net/manual/en/function.strpos.php
mordred is offline   Reply With Quote