php arrays function code example
Example 1: php arrays
$nums = [1, 2, 3, 4, 5];
Example 2: php array
<?php
$array = array("foo", "bar", "hello", "world");
var_dump($array);
?>
Example 3: php array
$array = ['cheese', 'ham', 'potato'];
var_dump($array);