Re: [RFC] Additional splat operator usage
| From: | Leigh | Date: | Wed, 05 Nov 2014 11:22:10 +0000 |
| Subject: | Re: [RFC] Additional splat operator usage | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-78715@lists.php.net to get a copy of this message | ||
On 4 November 2014 18:14, Rowan Collins <rowan.collins@gmail.com> wrote:
>
> If anything, I think I would expect the keys of splatted arrays to be discarded, since it seems
> most natural to use this in a list context, but I can imagine always having to check in the manual.
I agree on this point. Duplicate keys should not overwrite each other.
[...$foo, ...$bar] should literally unpack the values as if they were
comma delimited and discard all key information.