Re: split()
| From: | Jim Winstead | Date: | Mon, 21 Jun 1999 22:25:11 +0000 |
| Subject: | Re: split() | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-7357@lists.php.net to get a copy of this message | ||
On Jun 21, Andrey Zmievski wrote:
> Jim Winstead wrote:
> > Andrey, I think you broke it when the count parameter is passed.
> > See bug #150. The old behavior was correct, the new behavior
> > is not. It's supposed to work just like perl's split function
> > with the count parameter.
>
> Ok, I backed out the changes. Maybe there should be a way to just return the
> number of fully split pieces, without the remainder.
If you want everything completely split up, you shouldn't pass a
count argument. If you only want three full pieces, simply pass in
four and ignore the last one.
Jim