|  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
 [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.


Add a Patch

Pull Requests

Add a Pull Request


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-2023 The PHP Group
All rights reserved.
Last updated: Fri Dec 01 23:01:26 2023 UTC