PHP
反射 | Reflection

ReflectionExtension::getDependencies

ReflectionExtension::getDependencies

(PHP 5, PHP 7)

ReflectionExtension::getDependencies — Gets dependencies

Description

public array ReflectionExtension::getDependencies ( void )

Gets dependencies, by listing both required and conflicting dependencies.

Parameters

This function has no parameters.

Return Values

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

Examples

Example #1 ReflectionExtension::getDependencies() example

<?php $dom = new ReflectionExtension('dom' print_r($dom->getDependencies() ?>

The above example will output something similar to:

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

See Also

  • ReflectionClass::getVersion()

← ReflectionExtension::getConstants

ReflectionExtension::getFunctions →

© 1997–2017 The PHP Documentation Group

Licensed under the Creative Commons Attribution License v3.0 or later.

https://secure.php.net/manual/en/reflectionextension.getdependencies.php