array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'pt_BR', ), 'this' => array ( 0 => 'reflectionextension.getdependencies.php', 1 => 'ReflectionExtension::getDependencies', ), 'up' => array ( 0 => 'class.reflectionextension.php', 1 => 'ReflectionExtension', ), 'prev' => array ( 0 => 'reflectionextension.getconstants.php', 1 => 'ReflectionExtension::getConstants', ), 'next' => array ( 0 => 'reflectionextension.getfunctions.php', 1 => 'ReflectionExtension::getFunctions', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/reflection/reflectionextension/getdependencies.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.1.3, PHP 7, PHP 8)
ReflectionExtension::getDependencies — Gets dependencies
Gets dependencies, by listing both required and conflicting dependencies.
Esta função não possui parâmetros.
An associative array with dependencies as keys and
either Required
, Optional
or Conflicts
as the values.
Exemplo #1 ReflectionExtension::getDependencies() example
<?php
$dom = new ReflectionExtension('dom');
print_r($dom->getDependencies());
?>
O exemplo acima produzirá algo semelhante a:
Array ( [libxml] => Required [domxml] => Conflicts )