コード例 #1
0
ファイル: this.php プロジェクト: nicelxm/about_php
        parent::s();
    }
    public function ps()
    {
        var_dump($this);
        echo '<br/>';
        echo 'c:p:ps<br/>';
        p::s();
        echo 'from parent<br/>';
        parent::s();
        echo 'this->pd()<br/>';
        $this->pd();
    }
}
$c = new c();
$c->ps();
c::cs();
/***
object(c)#1 (0) { }
c:p:ps
NULL
p:static:s
from parent
NULL
p:static:s
this->pd()
object(c)#1 (0) { }
p:public:p
NULL
p:static:s
NULL