note 33420 deleted from function.strpos by alindeman
| From: | alindeman@php.net | Date: | Wed, 25 Jun 2003 14:13:08 +0000 |
| Subject: | note 33420 deleted from function.strpos by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-50990@lists.php.net to get a copy of this message | ||
Note Submitter: kalle.alm@home.se
----
I honestly don't see why such "hacks" has to be used. I mean, we all realize that
strpos() has to return 0, but why not just return -1 on not found, and the position otherwise.
-Kalle.