I have an Index php page that contains a code that prints the values of an array $a=['f','a','b'];
.
The code works fine on WAMP server on my computer however when I upload the page online on a server like 000webhost an error comes up that says there is unexpected '[' on line of the array. Does anyone know why this happens?