Re: var_export() and arrays

From: Date: Wed, 04 Sep 2002 05:48:12 +0000
Subject: Re: var_export() and arrays
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-87888@lists.php.net to get a copy of this message
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) -- Yasuo Ohgaki

« previous php.dev (#87888) next »