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

Chevereto图床程序出错

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:13:46
Original
1307 people have browsed it

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

Related labels:
php
source:php.cn
Statement of this Website
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template