ReflectionExtension
PHP Manual

ReflectionExtension::getDependencies

(PHP 5)

ReflectionExtension::getDependenciesGets dependencies

Descrierea

public array ReflectionExtension::getDependencies ( void )

Gets dependencies, by listing both required and conflicting dependencies.

Parametri

Această funcție nu are parametri.

Valorile întoarse

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

Exemple

Example #1 ReflectionExtension::getDependencies() example

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

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

Exemplul de mai sus va afișa ceva similar cu:

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

Vedeți de asemenea


ReflectionExtension
PHP Manual