ReflectionExtension
PHP Manual

ReflectionExtension::__construct

(PHP 5)

ReflectionExtension::__constructConstructs a ReflectionExtension

Descrição

public ReflectionExtension::__construct ( string $name )

Construct a ReflectionExtension object.

Parâmetros

name

Name of the extension.

Valor Retornado

A ReflectionExtension object.

Exemplos

Exemplo #1 ReflectionExtension example

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

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

O exemplo acima irá imprimir algo similar à:

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

Veja Também


ReflectionExtension
PHP Manual