php array with a string index code example
Example 1: php array
<?php
$array = array("foo", "bar", "hello", "world");
var_dump($array);
?>
Example 2: php array
$array = ['cheese', 'ham', 'potato'];
var_dump($array);
<?php
$array = array("foo", "bar", "hello", "world");
var_dump($array);
?>
$array = ['cheese', 'ham', 'potato'];
var_dump($array);