<?php class Kitchen { protected $yummy = 'cake'; } $kitchen = new Kitchen(); $cake = & Closure::bind(function & () { return $this->yummy; }, $kitchen, $kitchen)->__invoke(); var_dump($cake);
You have javascript disabled. You will not be able to edit any code.