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