aidan Mon May 30 15:21:44 2005 EDT
Modified files: /phpdoc/en/reference/strings/functions strripos.xml Log: Bug #33189. Refined description of offset http://cvs.php.net/diff.php/phpdoc/en/reference/strings/functions/strripos.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc/en/reference/strings/functions/strripos.xml diff -u phpdoc/en/reference/strings/functions/strripos.xml:1.5 phpdoc/en/reference/strings/functions/strripos.xml:1.6 --- phpdoc/en/reference/strings/functions/strripos.xml:1.5 Mon Dec 15 11:53:50 2003 +++ phpdoc/en/reference/strings/functions/strripos.xml Mon May 30 15:21:43 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <refentry id="function.strripos"> <refnamediv> <refname>strripos</refname> @@ -65,9 +65,14 @@ </example> </para> <simpara> - <parameter>offset</parameter> 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. + The <parameter>offset</parameter> parameter may be specified to begin + searching an arbitrary number of characters into the string. + </simpara> + <simpara> + Negative offset values mean the end of string is moved to the left by the + specified value plus one. For example, + <literal>strripos('abcdef', 'b', -4)</literal> will search the string + <literal>abc</literal> for <literal>b</literal>. </simpara> <para> See also <function>strrpos</function>,