ReflectionExtension::getDependencies

(PHP 5, PHP 7)
Gets dependencies
public array ReflectionExtension::getDependencies ( void )

Gets dependencies, by listing both required and conflicting dependencies.

Returns:

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

Examples:
ReflectionExtension::getDependencies() example
1
2
3
4
5
<?php
$dom new ReflectionExtension('dom');
 
print_r($dom->getDependencies());
?>

The above example will output something similar to:

Array
(
    [libxml] => Required
    [domxml] => Conflicts
)
doc_php
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.