ReflectionExtension
PHP Manual

ReflectionExtension::__construct

(PHP 5)

ReflectionExtension::__constructConstructs a ReflectionExtension

说明

public ReflectionExtension::__construct ( string $name )

Construct a ReflectionExtension object.

参数

name

Name of the extension.

返回值

A ReflectionExtension object.

范例

Example #1 ReflectionExtension example

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

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

以上例程的输出类似于:

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

参见


ReflectionExtension
PHP Manual