Home > Backend Development > PHP Tutorial > unexpected T_STRING, expecting T_VARIABLE 深夜未睡的大神们,靠你们了!该怎么处理

unexpected T_STRING, expecting T_VARIABLE 深夜未睡的大神们,靠你们了!该怎么处理

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 09:59:45
Original
1249 people have browsed it

unexpected T_STRING, expecting T_VARIABLE 深夜未睡的大神们,靠你们了!
Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE in C:\AppServ\www\vote\db.php on line 13
部分代码:
class db{
private static $dbhost;
  private static $dbuser;
private static $password;
private static $dbname;
private static $instance=NULL;

private function_construct($host,$user,$pass,$db){ //line 13
  self::$dbhost = $host;
self::$dbuser = $usr;
self::$password = $pass;
self::$dbname = $db;
self::creatcon();
}
为什么会错?为什么?求教!

------解决方案--------------------
private function __construct($host,$user,$pass,$db){

空格 双下划线。

Related labels:
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
javascript - safari private browsing
From 1970-01-01 08:00:00
0
0
0
Are there any better private git repositories?
From 1970-01-01 08:00:00
0
0
0
What is the git-bower private repository?
From 1970-01-01 08:00:00
0
0
0
Why is private mail triggered?
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