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