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:
Torben Wilson 2000-08-27 21:05:36 +00:00
parent d191901871
commit 5b300595b6

View file

@ -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>