php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #550 Trailing comma in lists
Submitted: 1998-07-14 07:00 UTC Modified: 2000-07-18 08:19 UTC
From: kk at shonline dot de Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 3.0.1 OS: Solaris 2.5.1
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: kk at shonline dot de
New email:
PHP Version: OS:

 

 [1998-07-14 07:00 UTC] kk at shonline dot de
In all kinds of enumerations, for example in array(a, b, c), PHP does not tolerate trailing commas, for example array(a, b, c, ). While this is certainly correct and looks strange when witten as in this input box, it is extremely annoying when generating code for eval and when writing large array initializations that are expanded with copy and paste. It would be nice if PHP allowed both notations.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-18 08:19 UTC] hholzgra at cvs dot php dot net
this is implemented in PHP 4
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 12:01:32 2024 UTC