The get_declared_classes
function ALL classes defined in PHP, both from the internal PHP library and the user's library.
I wanted a function for classes of type: get_defined_functions
, which separates PHP core functions of user functions.
I think you can do with Reflection but I believe there is another option.
How to get classes defined by user in PHP?