ReflectionExtension::getClasses
(PHP 5, PHP 7, PHP 8)
ReflectionExtension::getClasses — Gets classes
说明
public ReflectionExtension::getClasses(): array
从扩展中获取类列表。
参数
此函数没有参数。
返回值
返回一个ReflectionClass对象数组,包括扩展中所有类。如果扩展中没有类声明,将返回空数组。
范例
示例 #1 ReflectionExtension::getClasses() example
<?php
$ext = new ReflectionExtension('XMLWriter');
var_dump($ext->getClasses());
?>
以上例程的输出类似于:
array(1) { ["XMLWriter"]=> &object(ReflectionClass)#2 (1) { ["name"]=> string(9) "XMLWriter" } }

User Contributed Notes
There are no user contributed notes for this page.
备份地址:http://www.lvesu.com/blog/php/reflectionextension.getclasses.php