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