开发者

Verifying the existence of a method

开发者 https://www.devze.com 2023-04-05 12:39 出处:网络
Is possible to verify the existence of a method without instantiating the class in php? How I do开发者_如何学编程 it?

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

精彩评论

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