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 Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or 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

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: Sun May 05 03:01:29 2024 UTC