ReflectionExtension::__construct

(PHP 5, PHP 7, PHP 8)

ReflectionExtension::__constructConstructs a ReflectionExtension

Descrição

publicReflectionExtension::__construct(string$name)

Construct a ReflectionExtensionobject.

Parâmetros

name

Name of the extension.

Erros/Exceções

Throws ReflectionException if the extension to reflect does not exist.

Exemplos

Exemplo #1 ReflectionExtension example

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

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

O exemplo acima produzirá algo semelhante a:

Extension: Reflection (version: $Revision$)

Veja Também

To Top