PHP - Manual: ReflectionExtension::__construct
2024-11-12
(PHP 5, PHP 7, PHP 8)
ReflectionExtension::__construct — Constructs a ReflectionExtension
name
扩展的名称。
A ReflectionExtension object.
示例 #1 ReflectionExtension example
<?php
$ext = new ReflectionExtension('Reflection');
printf('Extension: %s (version: %s)', $ext->getName(), $ext->getVersion());
?>
以上例程的输出类似于:
Extension: Reflection (version: $Revision$)
官方地址:https://www.php.net/manual/en/reflectionextension.construct.php