ReflectionExtension::getVersion
(PHP 5, PHP 7, PHP 8)
ReflectionExtension::getVersion — 获取扩展版本
参数
此函数没有参数。
返回值
扩展的版本,如果扩展没有版本返回 null。
示例
示例 #1 ReflectionExtension::getVersion() 示例
<?php
$ext = new ReflectionExtension('mysqli');
var_dump($ext->getVersion());
?>以上示例的输出类似于:
string(3) "0.1"
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
