PHP - get_declared_classes
Trieda
Metóda - get_declared_classes
(PHP 4, PHP 5, PHP 7)
Inserts into an array the names of all the classes that are declared at that time and ready for use, and then returns the array. Last declared classes are at the end of this array.
Procedurálne
- function get_declared_classes () : array
Parametre
ŽiadneMávratovej hodnoty
Vracia: array
Returns the names of the classes that are declared in the current context.
Príklady
The <pre> HTML tags are just for the human-readable array
listing.
print "<pre>";
print_r(get_declared_classes());
print "</pre>";
Súvisiace manuály
- function class_exists (string $class_name, bool $autoload = true) : bool
- function get_declared_interfaces () : array
- function get_defined_functions (bool $exclude_disabled = FALSE) : array
