note 58288 deleted from tutorial.useful by jome

From: Date: Sun, 30 Oct 2005 10:21:33 +0000
Subject: note 58288 deleted from tutorial.useful by jome
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-97828@lists.php.net to get a copy of this message
Note Submitter: gernot at geebee-online dot de ---- IMHO there's a problem with interpreting the result of strpos() as a boolean value: According to the conversion rules for booleans ( http://www.php.net/manual/en/language.types.boolean.php ) both evaluates to FALSE: an empty string and the string "0". So if you searched for the substring "Mozilla" in the above example, the strpos() function returned "0" which would be interpreted as FALSE.

« previous php.notes (#97828) next »