开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜