Returns an array of the names of the declared classes in the current script.
In PHP 4.0.1, three extra classes are returned at the beginning of
stdClass (defined in
OverloadedTestClass (defined in
Also note that depending on what extensions you have compiled or loaded into PHP, additional classes could be present. This means that you will not be able to define your own classes using these names. There is a list of predefined classes in the Predefined Classes section of the appendices.
The above example will output something similar to:
 => stdClass
 => __PHP_Incomplete_Class
 => Directory