<?php error_reporting(-1); class A { function foo() { echo get_class($this); } } class B { function bar() { A::foo(); } } $b = new B; $b->bar();
You have javascript disabled. You will not be able to edit any code.