Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable
2018-03-07 18:33
633 查看
问题:
使用PHPSTUDY时 报错
原因:
phpstudy默认开启的是php5.5版本
解决方案:
把php版本切换到5.6+就搞定了
使用PHPSTUDY时 报错
原因:
phpstudy默认开启的是php5.5版本
解决方案:
把php版本切换到5.6+就搞定了
相关文章推荐
- syntax error, unexpected ''&expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NU
- Laravel 报错 :Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING)
- 执行显示客户下拉列表时出现:syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING
- PHP Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING
- PHP错误 。Parse error: syntax error, unexpected T_INLINE_HTML, expecting T_ENDSWITCH or T_CASE or T_DEFAULT
- Go报错 : syntax error: unexpected string, expecting comma or )
- ModelSim错误:syntax error, unexpected "IDENTIFIER", expecting ".*" or '.'
- thinkphp syntax error, unexpected ')', expecting T_VARIABLE or '$'
- Parse error: syntax error, unexpected T_STRING in \\e\\data\\tmp\\templist2.php on line 159
- PHP报错“Parse error: syntax error, unexpected T_VARIABLE”的解决办法
- Parse error: syntax error, unexpected T_STRING in /home/wwwroot/request_handler.php on line 60
- rickyyu学FPGA——modelsim 仿真错误:【near ";": syntax error, unexpected ';', expecting "STRING_LITERAL"】
- RMAN-01009: syntax error: found “dot”: expecting one of: “double-quoted-string, equal, identifier, s
- PHP expecting T_STRING or T_VARIABLE or T_NUM_STRING
- Parse error: syntax error, unexpected '$a' (T_VARIABLE) in D:\xampp\htdocs\curl1.php on line 5
- Parse error: syntax error, unexpected $end in D:\www\xxx\e\class\adminfun.php
- PHP报错“Parse error: syntax error, unexpected T_VARIABLE”的解决办法
- Parse error: syntax error, unexpected '?' in /home/ubuntu/workspace/vendor/laravel/framework/src/Ill
- 【GCC编译arm 运行出错】./any: line 1: syntax error: unexpected word (expecting ")")
- Parse error: syntax error, unexpected T_PUBLIC in