Source code raw phps
<?php
class A {
public $test = 1;
static function test() {
static::who();
}
static function who() {
echo "A";
}
}
class B extends A {
static function who() {
echo "B";
}
}
echo B::test(); // B
Comments
There is currently no comment here.