Hi, Let's say I have three classes set up as follows:
abstract Class A {
public static function testfunction()
{
print_r('Hi');
}
}
Class B extends A {
}
Class C extends A {
}
If I call testfunction through class B or C ie
B::testfunction();
Is there a way of printing out the name of the class that called it? So for example, the output could be
"Hi, this function was called by Class B"
Any advice appreciated.
Thanks.