|
Posted by Oli Filth on 05/15/06 21:44
ImOk said the following on 15/05/2006 18:18:
> In Smalltalk I can get the list of the classes, methods and global
> variables by querrying a global dictionary. In addition you can get the
> arguments.
>
> I know in PHP one can get the list of globals via the $GLOBALS array.
>
> But Is there a way to get the list of all the functions and
> classes/methods (and arguments) currently loaded in PHP by using
> reflection?
>
PHP 5 implements reflection, although the documentation is somewhat
hidden away in the manual, under Classes and Objects.
http://uk.php.net/manual/en/language.oop5.reflection.php.
The documentation is also somewhat spartan, but with some
experimentation you should be able to get the reflection classes to work.
--
Oli
Navigation:
[Reply to this message]
|