©
本文档使用
php.cn手册 发布
(PHP 5)
ReflectionExtension::__construct — Constructs a ReflectionExtension
$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 $)