<?php class foo { public $baz = 'newfoo'; function bar() { $cl = function() { var_dump($this); }; $this->baz = 'newfoo2'; return $cl; } } $f = new foo; $cl = $f->bar(); $cl();
You have javascript disabled. You will not be able to edit any code.