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