(PHP 5, PHP 7)
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());
?>
Exemplul de mai sus va afișa ceva similar cu:
Extension: Reflection (version: $Revision: 330543 $)