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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Pull Requests

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: Thu Dec 12 01:01:28 2024 UTC