7
在静态函数中使用$ this失败
我有想要在其中使用$ this的方法,但我得到的是:致命错误:不在对象上下文中时使用$ this。 我怎样才能使它工作? public static function userNameAvailibility() { $result = $this->getsomthin(); }
77
php
oop
this
static-methods