Copyright © tutorialspoint.com
| get_declared_classes ( void ); |
Returns an array of the names of the declared classes in the current script.
| Parameter | Description |
|---|---|
| void | void means no parameter is required. |
Returns an array of the names of the declared classes in the current script.
Following is the usage of this function:
<?php print_r(get_declared_classes()); ?> |
It will produce following result:
Array
(
[0] => stdClass
[1] => __PHP_Incomplete_Class
[2] => Directory
)
|
Copyright © tutorialspoint.com