Re: [RFC][DISCUSSION] Change var_export() array syntax touse short hand arrays
| From: | Sherif Ramadan | Date: | Thu, 09 Apr 2020 22:44:41 +0000 |
| Subject: | Re: [RFC][DISCUSSION] Change var_export() array syntax touse short hand arrays | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-109586@lists.php.net to get a copy of this message | ||
>
>
> I have no strong opinion
> either way, but anyway it cannot work as is, because var_export
> already has a second optional parameter (bool $return = false).
>
Yes, I meant the third argument. I updated the RFC to reflect that. Sorry.
> Moreover the RFC currently says that var_export([1, 2, 3]) produces
> ```
> array(1, 2, 3)
> ```
> but it actually produces
> ```
> array (
> 0 => 1,
> 1 => 2,
> 2 => 3,
> )
> ```
>
>
Also true, I fixed this in the RFC as well and sorry for the confusion.
> Regards,
>
> --
> Guilliam Xavier
>