mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Refined definition of negative offset values. It's correct now, though we probably need some examples for it to make sense.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@187366 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
daf85727cb
commit
b6e3caa157
1 changed files with 4 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<refentry id="function.strripos">
|
||||
<refnamediv>
|
||||
<refname>strripos</refname>
|
||||
|
@ -69,10 +69,9 @@ if ($pos === false) {
|
|||
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>.
|
||||
Negative offset values will start the search at
|
||||
<parameter>offset</parameter> characters from the
|
||||
<emphasis>start</emphasis> of the string.
|
||||
</simpara>
|
||||
<para>
|
||||
See also <function>strrpos</function>,
|
||||
|
|
Loading…
Reference in a new issue