Verifying the existence of a method
Is possible to verify the existence of a method without instantiating the class in php? How I do开发者_如何学编程 it?
I need to check in real time the existence of a method to build my links, but instantiate the classes is very expensive and unnecessary (don't need the classes at the time), so is_callable
and method_exists
are not an option.
Or ReflectionClass::hasMethod
精彩评论