<?php class A { public function foo() { $f = function() { var_dump(get_class($this)); }; $f(); } } $a = new A; $a->foo();
You have javascript disabled. You will not be able to edit any code.