phpday 2027 - Call for Papers

ReflectionExtension::getDependencies

(PHP 5 >= 5.1.3, PHP 7, PHP 8)

ReflectionExtension::getDependencies — Gets dependencies

Description

public function ReflectionExtension::getDependencies(): array

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()

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top