diffrent define array in php version 7.2 with php5.6 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);