correct way to create array in php code example
Example 1: ccreate array php
$array = array(
"foo" => "bar",
"bar" => "foo",
);
Example 2: array in php
<?php
$cars = array("Maserati", "Porsche", "BMW");
echo "I like " . $cars[0] . ", " . $cars[1] . " and " . $cars[2] . ".";
?>