#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:
Richard Quadling 2009-04-21 14:05:32 +00:00
parent 9d359d56d4
commit 89e45ccb61

View file

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