Is there a way how to execute closure in PHP5.3 within a context of an object?
class Test { public $name=\'John\'; function greet(){ eval(\'
what about:
class Test { public $name='John'; function greet(){ eval('echo "Hello, ".$this->name;'); call_user_func(function($obj){ echo "Goodbye, ".$obj->name; }, $this); } } $c = new Test; $c->greet();