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