#48703 [Opn]: unclear specification of limit option to preg_split
| From: | rquadling@php.net | Date: | Fri, 26 Jun 2009 14:26:20 +0000 |
| Subject: | #48703 [Opn]: unclear specification of limit option to preg_split | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-2418@lists.php.net to get a copy of this message | ||
ID: 48703
Updated by: rquadling@php.net
Reported By: eldering at a-eskwadraat dot nl
Status: Open
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:
Currently the limit parameter provides different output for explode and
preg_split() (http://bugs.php.net/bug.php?id=47560 and
http://bugs.php.net/bug.php?id=48704)
Previous Comments:
------------------------------------------------------------------------
[2009-06-26 13:57:07] eldering at a-eskwadraat dot nl
Description:
------------
On the function reference for preg_split, the limit option does not
specify that the last element contains the remaining string. Compare
with the split documentation, which does clearly state this and whose
behaviour seems identical.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48703&edit=1