Shorthand array doesn't work on server

前端 未结 1 592
孤独总比滥情好
孤独总比滥情好 2021-01-21 07:40

I\'m hosting a standard website from http://www.versio.nl/ and I\'m always getting the error Parse: syntax error, unexpected \'[\'. I would have to cha

相关标签:
1条回答
  • 2021-01-21 08:33

    only php 5.4.x and up works with the new shorthand array syntax, if your server version is lower then 5.4 then there's no way to make it work, you'll need to change the syntax to the old syntax.

    you could try to see the version using

    echo phpinfo();
    
    0 讨论(0)
提交回复
热议问题