class One {
static function test() {
echo get_class(new self());
}
}
One::test();
// produces: "One"
// However:
class Two extends One{}
Two::test();
// this also produces "One", any way to fix this?
class One {
static function test() {
echo get_class(new self());
}
}
One::test();
// produces: "One"
// However:
class Two extends One{}
Two::test();
// this also produces "One", any way to fix this?
:: Copyright KIRUPA 2024 //--