1
PHP CODE函数内的数组无法正常工作?
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?
}
我必须在类中使用的函数的阵列。
我看到这个错误。
Parse error: syntax error, unexpected '$this' (T_VARIABLE) in /var/www/html/
我该怎么办?
谢谢。