note 49252 added to function.strpos
| From: | euGee at osu1 dot php dot net | Date: | Fri, 21 Jan 2005 14:39:07 +0000 |
| Subject: | note 49252 added to function.strpos | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-83728@lists.php.net to get a copy of this message | ||
yoshipp, in PHP4, strrpos doesn't accept needles more than one character. Thus, in case 1 and
3, the needles are "b", and in case 2, the needles is "o". So the results are
correct.
strrpos('bob','bob') => 2
strrpos('bob','ob') => 1
strrpos('bob','b') => 2
----
Manual Page -- http://www.php.net/manual/en/function.strpos.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+49252
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49252&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49252&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49252&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49252&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49252&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+49252&report=yes
Search -- http://master.php.net/manage/user-notes.php