Search code examples
phpdrupal-6drupal-views

print_r to get object methods in 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?


Solution

  • I believe you're looking for get_class_methods. If this is the case, get_class_vars may also interest you.