|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-08-17 13:48 UTC] jani@php.net
[2007-08-19 01:59 UTC] hirokawa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sat Feb 07 17:00:01 2026 UTC |
Description: ------------ From the manual: Note: As of PHP 5.2.0 offset may be specified to begin searching an arbitrary number of characters into the string. Negative values will stop searching at an arbitrary point prior to the end of the string. Negative offsets are not working. Reproduce code: --------------- var_dump(mb_strrpos('abcd', 'd', -2)); var_dump(mb_strrpos('abcdd', 'd', -2)); Expected result: ---------------- boolean false int 3 Actual result: -------------- int 3 int 4