I would like to be able to call a closure that I assign to an object\'s property directly without reassigning the closure to a variable and then calling it. Is this possible
It seems to be possible using call_user_func().
call_user_func()
call_user_func($obj->callback);
not elegant, though.... What @Gordon says is probably the only way to go.