array php with var code example
Example 1: array php
<?php
$array = array(
"foo" => "bar",
"bar" => "foo",
);
// as of PHP 5.4
$array = [
"foo" => "bar",
"bar" => "foo",
];
?>
Example 2: php array
<?php
$array = array("foo", "bar", "hello", "world");
var_dump($array);
?>