I am getting error when I upload on shared hosting but in local computer works fine.
My code is below:
<?php
$arr = ["one","two","three"];
echo $arr[0];
?>
current error:
Parse error: syntax error, unexpected '[' in /home/jacky/public_html/test.php on line 2