阅读背景:

在php中获取父扩展类

来源:互联网 

i have the oop php code:

我有oop php代码:

class a {
    // with properties and functions
}

class b extends a {
    public function test() {
        echo __CLASS__; // this is b
        // parent::__CLASS__ // error
    }
}

$b = new b();
$b->test();
class



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: