ReflectionExtension
在线手册:中文  英文

ReflectionExtension::getDependencies

(PHP 5)

ReflectionExtension::getDependenciesGets dependencies

说明

public array ReflectionExtension::getDependencies ( void )

Gets dependencies, by listing both required and conflicting dependencies.

参数

此函数没有参数。

返回值

An associative array with dependencies as keys and either Required, Optional or Conflicts as the values.

范例

Example #1 ReflectionExtension::getDependencies() example

<?php
$dom 
= new ReflectionExtension('dom');

print_r($dom->getDependencies());
?>

以上例程的输出类似于:

Array
(
    [libxml] => Required
    [domxml] => Conflicts
)

参见


ReflectionExtension
在线手册:中文  英文
易百教程