print_r获取PHP中的对象方法? [英] print_r to get object methods in PHP?
本文介绍了print_r获取PHP中的对象方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Drupal 6中的Views 2,并且很难找到有关View对象的方法的文档.有没有像print_r这样的PHP函数可以输出方法和字段?
I'm working with Views 2 in Drupal 6, and I am having difficulty finding documentation on the methods of the View object. Is there any PHP function like print_r that outputs methods as well as fields?
推荐答案
我相信您正在寻找 get_class_vars 感兴趣
I believe you're looking for get_class_methods. If this is the case, get_class_vars may also interest you.
这篇关于print_r获取PHP中的对象方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文