Ejemplo n.º 1
0
<?php

class Foo
{
    public function __call($a, $b)
    {
        print "nonstatic\n";
        var_dump($a);
    }
    public static function __callStatic($a, $b)
    {
        print "static\n";
        var_dump($a);
    }
    public function test()
    {
        $this->fOoBaR();
        self::foOBAr();
        $this::fOOBAr();
    }
}
$a = new Foo();
$a->test();
$a::bAr();
foo::BAZ();