English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
PHP Class/Object function reference manual
The get_declared_classes() function returns an array composed of the names of the defined classes
get_declared_classes(void);
Returns an array composed of the names of classes defined in the current script.
Serial number | Parameters and descriptions |
---|---|
1 | void void indicates that no parameters are required. |
Returns an array composed of the names of classes defined in the current script.
The following is the usage of this function-
<?php print_r(get_declared_classes()); ?>Test to see‹/›
It will produce the following results-
The output has been shortened for viewing purposes.
Array ( [0] => stdClass [1]]=> __PHP_Incomplete_Class [2]]=> Directory ... ... )