Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10576 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26937 invoked by uid 1010); 17 Jun 2004 22:04:56 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 26908 invoked by uid 1007); 17 Jun 2004 22:04:56 -0000 Message-ID: <20040617220456.26899.qmail@pb1.pair.com> To: internals@lists.php.net Reply-To: jay@php.net Mail-Copies-To: jay@php.net Date: Thu, 17 Jun 2004 18:04:55 -0400 References: <5.1.0.14.0.20040617040132.01df4de8@mail.ionzoft.com> <20040617183941.82963.qmail@pb1.pair.com> <40D20E76.3090700@keliglia.com> Lines: 22 User-Agent: KNode/0.7.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Posted-By: 216.94.11.234 Subject: Re: [PHP-DEV] Array Question From: jay@php.net (Jay Smith) Mehdi Achour wrote: > This is now [1] a fixed documentation bug :) > I didn't find anything about it in the ChangeLog, nor bugs.php.net, > so I didn't include any version information in the docs. > Drop a mail to the documentation list if you figure it out ;) > > didou > > [1] - > http://cvs.php.net/diff.php/phpdoc/en/reference/array/functions/array.xml?r1=1.11&r2=1.12&ty=u > > There's an old bug report for this under bug #550. The whole idea of the trailing comma is to allow you to easily generate code that's suitable to pass through eval() or pass from var_export() to create a new array. It's a pretty old feature, as the date of the bug report would show. Not sure the version it appeared in, though. J