<?php class Kitchen { private $value = 'cheese'; } $k = new Kitchen(); $m = function(){ echo 'called me. Value is ' . $this->value; }; Closure::bind($m, $k, $k); var_dump($m());
You have javascript disabled. You will not be able to edit any code.