- var_dump: documentation ( source)
<?php
class Bar
{
static function func($t)
{
return __CLASS__;
}
}
class Foo extends Bar
{
static function func($t) {
return $t::foo($t);
}
}
class Qux extends Foo
{
static function func($t)
{
return __CLASS__;
}
}
var_dump(Foo::func('parent'));
var_dump(Foo::func('static'));