strpos mystery

From: Date: Thu, 29 Jul 2004 00:50:01 +0000
Subject: strpos mystery
Groups: php.general 
Request: Send a blank email to php-general+get-192137@lists.php.net to get a copy of this message
with this code fragment: <? $string='/mobile/phone.html'; if (strpos($string,'/mobile/')!==false) { print "one: yes\n"; } if (strpos($string,'/mobile/')===true) { print "two: yes\n"; } ?> only the first if statement prints anything. why is !== false not the same as === true ? -jsd-

« previous php.general (#192137) next »