PHP Array Creation
An array in PHP is created using [ ]
(prior to PHP version 5.4, an array was created
using the array function).
See the example:
<?php
$arr = ['a', 'b', 'c'];
var_dump($arr);
?>
Code execution result:
['a', 'b', 'c']
See Also
-
lesson
arrays in PHP