note 83267 deleted from tutorial.useful by philip

From: Date: Fri, 13 Jun 2008 04:36:51 +0000
Subject: note 83267 deleted from tutorial.useful by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-140402@lists.php.net to get a copy of this message
Note Submitter: admin at thaisharecity dot com ---- You should try in many situation. <?php $pos_str = "ABCDEFGH"; if(strpos($pos_str, "B") == true) { echo "True"; } else { echo "False"; } ?> It'll output True. But if you change strpos($pos_str, "B") to strpos($pos_str, "A") It return false. So using !== false is correct.

« previous php.notes (#140402) next »