ReflectionExtension::getDependencies

(PHP 5 >= 5.1.3, PHP 7)

ReflectionExtension::getDependencies锟斤拷取锟斤拷锟斤拷

说锟斤拷

public ReflectionExtension::getDependencies ( void ) : array

锟斤拷取锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷摹锟斤拷锟酵伙拷摹锟斤拷锟窖★拷摹锟� Gets dependencies, by listing both required and conflicting dependencies.

锟斤拷锟斤拷

锟剿猴拷锟斤拷没锟叫诧拷锟斤拷锟斤拷

锟斤拷锟斤拷值

锟斤拷锟斤拷一锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷展锟斤拷锟斤拷为锟斤拷锟斤拷锟斤拷锟斤拷锟介,每一锟斤拷锟饺≈滴� Required锟斤拷Optional 锟斤拷锟斤拷 Conflicts锟斤拷

锟斤拷锟斤拷

Example #1 ReflectionExtension::getDependencies() example

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

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

锟斤拷锟斤拷锟斤拷锟教碉拷锟斤拷锟斤拷锟斤拷锟斤拷冢锟�

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

锟轿硷拷

  • ReflectionClass::getVersion()