(PHP 5 >= 5.1.3, PHP 7, PHP 8)
ReflectionExtension::getDependencies — 获取依赖项
此函数没有参数。
一个关联的 array,其中依赖项作为键,Required、Optional 或 Conflicts 作为值。
示例 #1 ReflectionExtension::getDependencies() 示例
<?php
$dom = new ReflectionExtension('dom');
print_r($dom->getDependencies());
?>以上示例将输出类似以下内容
Array
(
[libxml] => Required
[domxml] => Conflicts
)