<?php class A { private $fruit = 'pear'; } function getfunc() { $b = function() { $a = function() { return 'apple'; }; echo $a(),"\n"; return $this->fruit; }; $x=$b->bindTo(new A()); return $x(); } echo getfunc();
You have javascript disabled. You will not be able to edit any code.