当我尝试执行以下操作时,我得到一个syntax error, unexpected T_VARIABLE
. 我究竟做错了什么?
class myObj {
public $birth_month;
public $birthday = array('input_val' => $this->birth_month);
}
我也试过
class myObj {
public $birth_month;
public $birthday = array('input_val' => $birth_month);
}