[UPHPU] And PHP 5.4 is out!

David Landry dlandry at byu.net
Thu Mar 1 21:35:51 MST 2012


>From the RFC, it looks like it was to make it easier to read nested arrays.
https://wiki.php.net/rfc/shortsyntaxforarrays

David Landry


On Thu, Mar 1, 2012 at 9:31 PM, Wade Preston Shearer <
wadeshearer.lists at me.com> wrote:

> On 1 Mar 2012, at 21:15, Steve Meyers wrote:
>
> > http://www.php.net/archive/2012.php#id2012-03-01-1
>
> What's the value of the short array syntax? It's barely any shorter.
>
> <?php
> $array = array(
>    "foo" => "bar",
>    "bar" => "foo"
> );
>
> // as of PHP 5.4
> $array = [
>    "foo" => "bar",
>    "bar" => "foo"
> ];
> ?>
>
>
> _______________________________________________
>
> UPHPU mailing list
> UPHPU at uphpu.org
> http://uphpu.org/mailman/listinfo/uphpu
> IRC: #uphpu on irc.freenode.net
>


More information about the UPHPU mailing list