Dutch PHP Conference 2025 - Call For Papers

ReflectionExtension::getDependencies

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

ReflectionExtension::getDependenciesGets dependencies

Опис

public ReflectionExtension::getDependencies(): array

Gets dependencies, by listing both required and conflicting dependencies.

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

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

Приклади

Приклад #1 ReflectionExtension::getDependencies() example

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

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

Поданий вище приклад виведе щось схоже на:

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

Прогляньте також

  • ReflectionClass::getVersion()

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top