【发布时间】:2017-02-13 21:59:46
【问题描述】:
PHP 代码
class XXX{
public function ggGet($str){
return gGet($str); // This is ok working gGet is global function
}
public static $Array = array ( "value" => $this->ggGet("email")); // This code is error Why?
}
我必须在类中使用数组中的函数。
我看到了这个错误。
解析错误:语法错误,/var/www/html/ 中出现意外的 '$this' (T_VARIABLE)
我必须做什么?
谢谢。
【问题讨论】: