updated split() return value description when using parameter limit

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@24720 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Hartmut Holzgraefe 2000-05-23 05:20:26 +00:00
parent 362e870d18
commit 8f07319e88

View file

@ -248,10 +248,13 @@ echo ereg_replace( "(( )is)", "\\2was", $string );
</funcsynopsis>
<para>
Returns an array of strings, each of which is a substring of
string formed by splitting it on boundaries formed by the regular
expression <parameter>pattern</parameter>. If an error occurs,
returns false.
</para>
<parameter>string</parameter> formed by splitting it on boundaries formed
by the regular expression <parameter>pattern</parameter>.
If <parameter>limit</parameter> is set, the returned array will contaion a
maximum of <parameter>limit</parameter> elements with the last element
containing the whole rest of <parameter>string</parameter>.
If an error occurs, <function>split</function> returns false.
</para>
<para>
To get the first five fields from a line from