mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 17:08:54 +00:00
Clarify that string offsets start from 0.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@31390 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
d191901871
commit
5b300595b6
1 changed files with 7 additions and 3 deletions
|
@ -2842,9 +2842,13 @@ echo strtr("hi all, I said hello", $trans) . "\n";
|
|||
</para>
|
||||
<para>
|
||||
If <parameter>start</parameter> is positive, the returned string
|
||||
will start at the <parameter>start</parameter>'th character of
|
||||
<parameter>string</parameter>.
|
||||
</para>
|
||||
will start at the <parameter>start</parameter>'th position in
|
||||
<parameter>string</parameter>, counting from zero. For instance,
|
||||
in the string '<literal>abcdef</literal>', the character at
|
||||
position <literal>0</literal> is '<literal>a</literal>', the
|
||||
character at position <literal>2</literal> is
|
||||
'<literal>c</literal>', and so forth.
|
||||
</para>
|
||||
<para>
|
||||
Examples:
|
||||
<informalexample>
|
||||
|
|
Loading…
Reference in a new issue