function __construct(){
$this->_secret = hash('md5',$this->$_secret,true);
报错提示:
Fatal error: Cannot access empty property;
$this->$_secret去掉$
把后边的$this->$_secret去掉$
$this->_secret = hash('md5',$this->$_secret,true);
$this->$_secret去掉$ => $this->_secret
例如$_secret=2
$this->$_secret就变成$this->2
这就是PHP报错的原因了