ReflectionExtension
PHP Manual

ReflectionExtension::__construct

(PHP 5)

ReflectionExtension::__constructConstructs a ReflectionExtension

Descripción

ReflectionExtension::__construct ( string $name )

Construct a ReflectionExtension object.

Parámetros

name

Name of the extension.

Valores devueltos

A ReflectionExtension object.

Ejemplos

Example #1 ReflectionExtension example

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

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

El resultado del ejemplo sería algo similar a:

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

Ver también


ReflectionExtension
PHP Manual