Can I list all PHP classes and their methods and properties?

I am jumping into OOP using my PHP. Is there a way to list all active classes and their methods and properties?

+6
oop php
source share
3 answers

Full list of similar features :)

Quick view:

get_declared_classes() // gives you all declared classes get_class_methods() // gives you all methods of class get_class_vars() // gives you properties of the class get_object_vars() // gives you propertis of an object get_parent_class() // gives you parent class of the current class 
+7
source share

You might also be interested in the Reflection API offered by PHP .

As they claim in the introduction:

PHP 5 comes with a full reflection API, which adds reverse engineering classes, interfaces, functions, methods, and extensions. In addition, the reflection API offers ways to retrieve document comments for functions, classes, and methods.

+4
source share
+1
source share

All Articles