In some cases you may need to investigate which classes are loaded in the current scope. You can do it pretty fine with the get_declared_classes() function. This function will return an array of currently available classes.
1 2 3 4 |
<?php include_once("class.myClass.php"); print_r(get_declared_classes()); ?> |
Hi, this is almost what I need… only I want an array of user defined classes…. and dont care for the other 168…
But thank you, this shows ther is a way.