class Bob extends Person
{
//do some stuff
}
class Person
{
public function __construct()
{
//get the class name of the class that is extending this one
//should be Bob
}
}
How can I get the class name of Bob
from inside the constructor of the Person
class?