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