note 71726 deleted from function.strpos by nlopess

From: Date: Mon, 18 Dec 2006 10:53:12 +0000
Subject: note 71726 deleted from function.strpos by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-120722@lists.php.net to get a copy of this message
Note Submitter: brodseba at iname dot com ---- Just a little note : false != FALSE So : <?php $string = 'ABC'; // Wrong way if (strpos('$string, 'B') === false) { } // Should be... if (strpos('$string, 'B') === FALSE) { } ?> I lost some hours on this one :-(

« previous php.notes (#120722) next »