ReflectionExtension::__construct()
(PHP 5, PHP 7)
Constructs a ReflectionExtension
说明
public ReflectionExtension::__construct(string $name)
Construct aReflectionExtensionobject.
参数
- $name
扩展的名称。
返回值
AReflectionExtensionobject.
范例
Example #1ReflectionExtensionexample
<?php $ext = new ReflectionExtension('Reflection'); printf('Extension: %s (version: %s)', $ext->getName(), $ext->getVersion()); ?>
以上例程的输出类似于:
Extension: Reflection (version: $Revision: 338648 $)
参见
- ReflectionExtension::info() 输出扩展信息
- Constructors