Re: PHP5 OOP how do I get the list of all classes dynamically?
| From: | Oliver Grätz | Date: | Thu, 06 Oct 2005 03:29:29 +0000 |
| Subject: | Re: PHP5 OOP how do I get the list of all classes dynamically? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-223677@lists.php.net to get a copy of this message | ||
You can get an array of all declared classes with
http://de.php.net/manual/en/function.get-declared-classes.php
If you need more context (e.g. only subclasses of X)
you should definitely have a close look at the reflection api.
AllOLLi
____________
"Being lectured by the President on fiscal responsibility is like Tony
Soprano talking to me about law and order"
[Sen. John Kerry, 3rd debate]