PHP 5.4 version Array syntax

by Ranganathan 2012-06-06 18:11:29

<font size=6>
<?php
$array = array(
"foo" => "bar",
"bar" => "foo"
);

// as of PHP 5.4
$array = [
"foo" => "bar",
"bar" => "foo"
];
?>
</font>
836
like
0
dislike
0
mail
flag

You must LOGIN to add comments