Re: RFC: Short syntax for Arrays (redux)
| From: | Michael Maclean | Date: | Tue, 31 May 2011 21:52:43 +0000 |
| Subject: | Re: RFC: Short syntax for Arrays (redux) | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-52593@lists.php.net to get a copy of this message | ||
On 31/05/11 19:42, Brian Moon wrote:
https://wiki.php.net/rfc/shortsyntaxforarrays Since this was brought again recently by Rasmus<snip> I'm all for this, though I would confess to having a preference for the second syntax: $arr = [ 'foo' => 'bar', 'baz' => 'foo' ] seems to fit better with PHP than the other one, JSON-compatibility aside. -- Cheers, Michael