php Parse error: syntax error, unexpected T_STRING
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in D:\inetpub\vhosts\jszy.hebut.edu.cn\httpdocs\admin\common\mysql.class.php on line 11
第十一行代码是:
private $host;
怎么会报这样的错,是php的版本不对吗?
------解决方案--------------------
private 只在 php5 以后才有
不会你的是 php4 吧?
如果是php5 请贴出前11行代码
------解决方案--------------------
确切的说const在5.3后才有
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号