Home >Backend Development >PHP Tutorial >Chevereto图床程序出错

Chevereto图床程序出错

WBOY
WBOYOriginal
2016-06-06 20:13:461272browse

php版本:5.3
错误信息:
Parse error: syntax error, unexpected '[' in D:\phpStudy\tc\app\loader.php on line 116

这个问题已被关闭,原因:与:/q/1010000004697295重复提问

回复内容:

php版本:5.3
错误信息:
Parse error: syntax error, unexpected '[' in D:\phpStudy\tc\app\loader.php on line 116

错误上来看是拼写错误,用IDE看一下吧

是不是使用了不兼容的写法。
比如 fun(x) 返回的数组 array("name" => "test");

php5.3
fun(x)['name'] // error 会有报错

php5.4 以上的就没有问题
fun(x)['name'] // ok

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn