Re: Syntactic improvement to array
| From: | Sara Golemon | Date: | Sun, 04 Feb 2007 23:26:15 +0000 |
| Subject: | Re: Syntactic improvement to array | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-27778@lists.php.net to get a copy of this message | ||
So what I'm thinking of is: array(1, 2, 3) == [1, 2, 3] array(1, 2, array("foo", "bar")) == [1, 2, ["foo", "bar"]] array("key" => 1, "key2" => 2) == ["key" => 1, "key2" => 2] An enthusiastic thumbs-sideways.I'll probably use this at some point, but not for anything which needs to be version agnostic. -Sara