we have one class
class A { // I am using class B here public function whatever() { $class_b = new B; $class_b->show_caller(); } } and other
class B { public function show_caller() { // show me the caller class (should output "A") } } I need to get the caller class name. P.S. Inheritance is not an option!