In PHP is it possible to do something like this:
myFunction( MyClass::staticMethod );
so that \'myFunction\' will have a reference to the stati
If you want to avoid strings, you can use this syntax:
myFunction( function(){ return MyClass::staticMethod(); } );
It is a little verbose, but it has the advantage that it can be statically analysed. In other words, an IDE can easily point out an error in the name of the static function.