RE: [PHP] strpos error (I'm missing something obvious)

From: Date: Mon, 01 Oct 2007 21:44:32 +0000
Subject: RE: [PHP] strpos error (I'm missing something obvious)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-262625@lists.php.net to get a copy of this message
[snip] I fixed this by changing === TRUE to !== FALSE, so I think I am good to go now. But would still like to know why TRUE doesn't work. Thanks. [/snip] !== FALSE is not good either, it is not a valid test strpos returns the numeric position of the first occurrence of needle in the haystack string.

« previous php.general (#262625) next »