note 21235 added to function.strpos
| From: | jjrocket at yahoo dot com | Date: | Sat, 04 May 2002 05:22:00 +0000 |
| Subject: | note 21235 added to function.strpos | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-30159@lists.php.net to get a copy of this message | ||
It may be obvious to most, but the number returned by strpos will be the position in haystack at
which the string needle starts.
For example if haystack is "Now is the time" and needle is "Now", then strpos
will return 0, not 2.
--
http://www.php.net/manual/en/function.strpos.php
http://master.php.net/manage/user-notes.php?action=edit+21235
http://master.php.net/manage/user-notes.php?action=delete+21235
http://master.php.net/manage/user-notes.php?action=reject+21235