php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #12284 negative limits in explode()
Submitted: 2001-07-20 10:16 UTC Modified: 2005-06-29 12:21 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: andrew at andrew dot org Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.6 OS: any
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: andrew at andrew dot org
New email:
PHP Version: OS:

 

 [2001-07-20 10:16 UTC] andrew at andrew dot org
wouldn't it be nice if one could specify a negative parameter as a limit for explode(), to merge entries at the beginning rather than at the ending of the exploding string?

sure it would burden the syntax a little, but could be useful.
andrew

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-29 12:21 UTC] nlopess@php.net
Implemented in PHP 5.1.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 22:01:36 2025 UTC