Re: [RFC] Square brackets shortcut

From: Date: Sun, 20 Jan 2008 03:26:39 +0000
Subject: Re: [RFC] Square brackets shortcut
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-34832@lists.php.net to get a copy of this message
Antony Dovgal wrote: > On 10.01.2008 13:07, Ryusuke SEKIYAMA wrote: >> Hello, lists, >> >> I'm tired to type "array()" many times. > > -1 > > The parser in my head is unable to parse this: > <?php > $var=["str"]; > $var["str"]=1; > ?> > Eh, that would just come out as [ 0 => "str", "str" => 1 ] Not too problematic in my mind. +1 for square brackets.

« previous php.internals (#34832) next »