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