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
I note that this works in PHP5.5
$a = array(); $a['callback'] = function() { print "HelloWorld!"; }; $a['callback']();
Allows one to create a psuedo-object collection of closures.