Inheritance: extends c
Exemple #1
0
 public function nons()
 {
     $str = 'blah';
     self::$str();
     self::stat();
     parent::blah();
     parent::func(null);
     parent::func($this);
     parent::func(null);
     parent::func($this);
     parent::callfunc();
     self::fakemethod(1, 2, 3);
     self::fakemethod();
 }
Exemple #2
0
<?php

function do_throw()
{
    throw new Exception();
}
class aa
{
    function check()
    {
    }
    function dosome()
    {
        $this->check(do_throw());
    }
}
$l_aa = new aa();
$l_aa->dosome();