[UPHPU] And PHP 5.4 is out!

Wade Preston Shearer wadeshearer.lists at me.com
Thu Mar 1 21:31:38 MST 2012


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"
];
?>



More information about the UPHPU mailing list