Re: var_export() and arrays
| From: | derick@php.net | Date: | Wed, 04 Sep 2002 05:39:54 +0000 |
| Subject: | Re: var_export() and arrays | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-87885@lists.php.net to get a copy of this message | ||
On Wed, 4 Sep 2002, Sebastian Bergmann wrote:
> <?php
> $array = array('foo', 'bar');
> var_export($array);
> ?>
>
> prints
>
> array (
> 0 => 'foo',
> 1 => 'bar',
> )
>
> The comma after 'bar' is superfluous.
It is, but removeing it would require quite a hack. I thought of fixing
that, but as Zend doesn't have problems with it, I decided that it
doesn't matter if there is a comma or not.
Derick
---------------------------------------------------------------------------
Did I help you? http://www.derickrethans.nl/link.php?url=giftlist
Frequent ranting: http://www.derickrethans.nl/
---------------------------------------------------------------------------
PHP: Scripting the Web - derick@php.net
All your branches are belong to me!
SRM: Script Running Machine - www.vl-srm.net
---------------------------------------------------------------------------