With this code:
<?php
class a {
public static function type() {
echo get_class();
}
}
class b extends a {
}
echo b::type();
It outputs a
. I would like the name of the calling class: b
. Is it possible ?
With this code:
<?php
class a {
public static function type() {
echo get_class();
}
}
class b extends a {
}
echo b::type();
It outputs a
. I would like the name of the calling class: b
. Is it possible ?