问题
I need to know whether the method is declared as static given its name and the name of the class containing it. method_exists provides true for both static and non-static methods.
回答1:
use ReflectionMethod::isStatic
回答2:
Here's a little more clear way on how to use ReflectionMethod:
$MethodChecker = new ReflectionMethod($ClassName,$MethodName);
var_dump($MethodChecker->isStatic());
来源:https://stackoverflow.com/questions/7513589/how-to-check-whether-a-method-is-static-in-php