I tried to define an simple array in php, and I got an "unexpected '[' error message.
Code:
<?php
$days = ["Mon","Tue","Wed","Thu","Fri"];
echo "Value at index 1 is ". $days[1];
?>
while using the $days = array("Mon","Tue","Wed","Thu","Fri");
works fine