note 44734 deleted from tutorial.useful by nlopess
| From: | nlopess@php.net | Date: | Sun, 15 Aug 2004 00:26:07 +0000 |
| Subject: | note 44734 deleted from tutorial.useful by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-74656@lists.php.net to get a copy of this message | ||
Note Submitter: geozipp@NOSPAM.excite.com
----
Regarding feline's note:
<?php
if (strpos($a, $b) !== FALSE)
?>
performs a rigorous test, since it tests for type as well as value.
<?php
if (strpos($a, $b) >= 0)
?>
will perform a typecast, and thus will produce erroneous results if $a does not contain $b.