mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
closed open bracket
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@113061 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
e6758715ec
commit
b22bb3e903
1 changed files with 4 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.substr">
|
||||
<refnamediv>
|
||||
|
@ -49,7 +49,8 @@ echo $string{3}; // returns d
|
|||
<para>
|
||||
If <parameter>start</parameter> is negative, the returned string
|
||||
will start at the <parameter>start</parameter>'th character
|
||||
from the end of <parameter>string</parameter>.</para>
|
||||
from the end of <parameter>string</parameter>.
|
||||
</para>
|
||||
<example>
|
||||
<title>Using a negative <parameter>start</parameter></title>
|
||||
<programlisting role="php">
|
||||
|
@ -66,7 +67,7 @@ $rest = substr("abcdef", -3, 1); // returns "d"
|
|||
If <parameter>length</parameter> is given and is positive, the string
|
||||
returned will contain at most <parameter>length</parameter> characters
|
||||
beginning from <parameter>start</parameter> (depending on the length of
|
||||
<parameter>string</parameter>. If <parameter>string</parameter> is less
|
||||
<parameter>string</parameter>). If <parameter>string</parameter> is less
|
||||
than <parameter>start</parameter> characters long, &false; will be
|
||||
returned.
|
||||
</para>
|
||||
|
|
Loading…
Reference in a new issue