ReflectionExtension::__construct

(PHP 5, PHP 7)

ReflectionExtension::__constructConstructs a ReflectionExtension

说明

public ReflectionExtension::__construct ( string $name )

Construct a ReflectionExtension object.

参数

name

扩展的名称。

范例

Example #1 ReflectionExtension example

<?php
$ext 
= new ReflectionExtension('Reflection');

printf('Extension: %s (version: %s)'$ext->getName(), $ext->getVersion());
?>

以上例程的输出类似于:

Extension: Reflection (version: $Revision: 338648 $)

参见

User Contributed Notes

There are no user contributed notes for this page.