cvs: phpdoc /en/reference/strings/functions explode.xml

From: Date: Tue, 21 Apr 2009 14:05:33 +0000
Subject: cvs: phpdoc /en/reference/strings/functions explode.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-3835@lists.php.net to get a copy of this message
rquadling Tue Apr 21 14:05:33 2009 UTC Modified files: /phpdoc/en/reference/strings/functions explode.xml Log: #48035 explode() returns empty array if delimiter not found and limit is negative http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/strings/functions/explode.xml?r1=1.20&r2=1.21&diff_format=u Index: phpdoc/en/reference/strings/functions/explode.xml diff -u phpdoc/en/reference/strings/functions/explode.xml:1.20 phpdoc/en/reference/strings/functions/explode.xml:1.21 --- phpdoc/en/reference/strings/functions/explode.xml:1.20 Thu Apr 2 09:24:07 2009 +++ phpdoc/en/reference/strings/functions/explode.xml Tue Apr 21 14:05:32 2009 @@ -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>

« previous php.doc.cvs (#3835) next »