note 1467 deleted from function.strpos by jimw
| From: | jimw@php.net | Date: | Thu, 18 Oct 2001 21:24:26 +0000 |
| Subject: | note 1467 deleted from function.strpos by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-19118@lists.php.net to get a copy of this message | ||
I've always detected the difference between match at 0 and no match this way:
<pre>
if(strlen(strpos($hay,$needle))) { .. }
</pre>
i thought that i had tried the " == '0'" thing before and didn't get it to
work in every case, but maby i was mistaken, idk.