|
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-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 20:00:01 2025 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