I always use the parentheses to define an array in PHP, such as:
$array = array('a','b','c');
But every now and then I see some code here using brackets, like:
$array = ['a', 'b', 'c'];
However, if I use brackets, I get the error:
...
asked by
01.05.2018 / 00:06