note 23473 deleted from function.strpos by nlopess

From: Date: Tue, 25 Jul 2006 11:20:52 +0000
Subject: note 23473 deleted from function.strpos by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-115144@lists.php.net to get a copy of this message
Note Submitter: schofiel at cs dot ualberta dot ca ---- Only 0 is false in PHP non-zero is postive so -2 could be a true. Since they can't use zero becuase it is in the range of possible correct positions within a string. So do the type check against false explicity to prevent odd behavior

« previous php.notes (#115144) next »