开发者

PHP - How to get a list of class's member function?

开发者 https://www.devze.com 2023-03-02 02:39 出处:网络
If I know class\'s开发者_开发问答 name. Is there a way to know class\'s member function list ?get_class_methods() is your friendYou can use PHP\'s reflection API to get all kinds of useful information

If I know class's开发者_开发问答 name. Is there a way to know class's member function list ?


get_class_methods() is your friend


You can use PHP's reflection API to get all kinds of useful information about classes.

Here's some tutorials:

http://www.tuxradar.com/practicalphp/16/4/0

http://mark-story.com/posts/view/using-the-php-reflection-api-for-fun-and-profit

0

精彩评论

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