Re: Re: var_export() and arrays

From: Date: Sun, 08 Sep 2002 15:27:47 +0000
Subject: Re: Re: var_export() and arrays
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-88079@lists.php.net to get a copy of this message
At 02:48 PM 9/4/2002 +0900, Yasuo Ohgaki wrote:
Sebastian Bergmann wrote:
    <?php
    $array = array('foo', 'bar');
    var_export($array);
    ?>
prints
    array (
      0 => 'foo',
      1 => 'bar',
    )
The comma after 'bar' is superfluous.
I agree, but it has been discussed recently. Derick added extra , since it should not harm any. (there are shell script languages accept extra , like this also)
C also allows the extra , exactly for the reason of auto-generated source files. Andi

« previous php.dev (#88079) next »