mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
#48035 explode() returns empty array if delimiter not found and limit is negative
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@279116 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
9d359d56d4
commit
89e45ccb61
1 changed files with 7 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.20 $ -->
|
||||
<!-- $Revision: 1.21 $ -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.explode">
|
||||
<refnamediv>
|
||||
<refname>explode</refname>
|
||||
|
@ -73,10 +73,12 @@
|
|||
&reftitle.returnvalues;
|
||||
<para>
|
||||
If <parameter>delimiter</parameter> is an empty string (""),
|
||||
<function>explode</function> will return &false;. If
|
||||
<parameter>delimiter</parameter> contains a value that is not contained
|
||||
in <parameter>string</parameter>, then <function>explode</function> will
|
||||
return an array containing <parameter>string</parameter>.
|
||||
<function>explode</function> will return &false;.
|
||||
If <parameter>delimiter</parameter> contains a value that is not
|
||||
contained in <parameter>string</parameter> and a negative
|
||||
<parameter>limit</parameter> is used, then an empty array will be
|
||||
returned. For any other <parameter>limit</parameter>, an array containing
|
||||
<parameter>string</parameter> will be returned.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
|
|
Loading…
Reference in a new issue