我在 cake php 中有如下代码:
public $ceff_instance = array();
public function __construct() {
$this->ceff_instance = $this->wsMethod_GO();
}
protected $filedMethodMappings = $this->$ceff_instance;
where$wsMethod_GO
返回一个数组。但是,它说unexpected T_FUNCTION
我尝试将$ceff_instance
数组放入$filedMethodMappings
. 这是什么原因?
我这辈子都想不通。