note 20884 deleted from function.stristr by jsjohnst
| From: | jsjohnst@php.net | Date: | Thu, 10 Mar 2005 04:04:12 +0000 |
| Subject: | note 20884 deleted from function.stristr by jsjohnst | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-86193@lists.php.net to get a copy of this message | ||
Note Submitter: dan at mojavelinux dot com
----
Watch out on this function if you are searching for a '0' as the last character. If you
string is,
$total = "Your total is 0";
and you do
if (stristr($total, '0')) {
echo "you have nothing";
}
it will not echo anything.