note 44734 added to tutorial.useful
| From: | geozipp at NOSPAM dot excite dot com | Date: | Sat, 14 Aug 2004 21:55:45 +0000 |
| Subject: | note 44734 added to tutorial.useful | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-74648@lists.php.net to get a copy of this message | ||
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.
----
Manual Page -- http://www.php.net/manual/en/tutorial.useful.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44734
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44734&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44734&report=yes
Search -- http://master.php.net/manage/user-notes.php