mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Move info about returning false (bug #45967)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@268331 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
ebaa69fb65
commit
edf9f39f9b
1 changed files with 6 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.17 $ -->
|
||||
<!-- $Revision: 1.18 $ -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.substr">
|
||||
<refnamediv>
|
||||
<refname>substr</refname>
|
||||
|
@ -49,6 +49,10 @@
|
|||
will start at the <parameter>start</parameter>'th character
|
||||
from the end of <parameter>string</parameter>.
|
||||
</para>
|
||||
<para>
|
||||
If <parameter>string</parameter> is less than or equal to
|
||||
<parameter>start</parameter> characters long, &false; will be returned.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Using a negative <parameter>start</parameter></title>
|
||||
|
@ -72,9 +76,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
|
||||
than or equal to <parameter>start</parameter> characters long, &false;
|
||||
will be returned.
|
||||
<parameter>string</parameter>).
|
||||
</para>
|
||||
<para>
|
||||
If <parameter>length</parameter> is given and is negative, then that many
|
||||
|
|
Loading…
Reference in a new issue