note 57043 added to function.strrpos
| From: | nh_handyman at osu1 dot php dot net | Date: | Thu, 22 Sep 2005 10:59:55 +0000 |
| Subject: | note 57043 added to function.strrpos | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-95593@lists.php.net to get a copy of this message | ||
As noted in some examples below, strrpos does not act the same on every platform!
On Linux, it returns the position of the end of the target
On Windows, it returns the position of the start of the target
strrpos ("c:/somecity/html/t.php")
returns 11 on Windows
returns 16 on Linux
Brian
----
Manual Page -- http://www.php.net/manual/en/function.strrpos.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57043
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57043&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57043&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57043&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57043&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57043&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57043&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57043&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57043&report=yes
Search -- http://master.php.net/manage/user-notes.php