ReflectionExtension::getVersion

(PHP 5, PHP 7, PHP 8)

ReflectionExtension::getVersion获取扩展版本

说明

public ReflectionExtension::getVersion(): ?string

获取扩展的版本。

参数

此函数没有参数。

返回值

扩展的版本,如果扩展没有版本返回 null

示例

示例 #1 ReflectionExtension::getVersion() 示例

<?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