In PHP is it possible to do something like this:
myFunction( MyClass::staticMethod );
so that \'myFunction\' will have a reference to the stati
this will show 6 for the the first call and 9 for the second call in output.
$staticmethod1 = function ($max) { return $max*2; }; $staticmethod2 = function ($max) { return $max*$max; }; function myfunction($x){ echo $x(3); } myfunction($staticmethod1); myfunction($staticmethod2);