Bug #33189. Refined description of offset

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@187340 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Aidan Lister 2005-05-30 19:21:43 +00:00
parent 2b4e86c3dc
commit daf85727cb

View file

@ -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 @@ if ($pos === false) {
</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>,