I know you can use get_class($this) normally but I need to get the name of the class in a static function where the object hasn't been instantiated.
See the following code:
class ExampleClass
{
static function getClassName()
{
echo get_class($this); // doesn't work unless the object is instantiated.
}
}
$test1 = new ExampleClass();
$test1->getClassName(); // works
ExampleClass::getClassName(); // doesn't work