Re: [RFC][VOTE] Allow specifying keys in list()
| From: | Rowan Collins | Date: | Fri, 12 Feb 2016 15:15:08 +0000 |
| Subject: | Re: [RFC][VOTE] Allow specifying keys in list() | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-91224@lists.php.net to get a copy of this message | ||
S.A.N wrote on 12/02/2016 15:13:
But is also necessary and the function or operator like object_assign($target, ...$sources)Like I say, for that kind of purpose, I'd just use an array, which already has the facilities for working with arbitrary keys. But I know some people think $foo->bar "looks prettier" than $foo['bar'], and make big trees of stdClass objects, so maybe it's a matter of taste.