ReflectionExtension::getClassNames
(PHP 5, PHP 7, PHP 8)
ReflectionExtension::getClassNames — 获取类名称
说明
public ReflectionExtension::getClassNames(): array
获取扩展中的类名称列表。
参数
此函数没有参数。
返回值
返回类名称数组。如果扩展中没有类声明,将返回空数组。
范例
示例 #1 ReflectionExtension::getClassNames() example
<?php
$ext = new ReflectionExtension('XMLWriter');
var_dump($ext->getClassNames());
?>
以上例程的输出类似于:
array(1) { [0]=> string(9) "XMLWriter" }

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