Dutch PHP Conference 2025 - Call For Papers

ReflectionExtension::getVersion

(PHP 5, PHP 7, PHP 8)

ReflectionExtension::getVersionGets extension version

Опис

public ReflectionExtension::getVersion(): ?string

Gets the version of the extension.

Параметри

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

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

The version of the extension, or null if the extension has no version.

Приклади

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

<?php
$ext
= new ReflectionExtension('mysqli');
var_dump($ext->getVersion());
?>

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

string(3) "0.1"

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

add a note

User Contributed Notes

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