ReflectionExtension::__construct

Constructs a ReflectionExtension

&reftitle.description; public `ReflectionExtension::__construct` `string` `name`

Construct a `ReflectionExtension` `object`.

&reftitle.parameters;

`name`

- Name of the extension.

&reftitle.errors;

Throws `ReflectionException` if the extension to reflect does not exist.

&reftitle.examples;

### `ReflectionExtension` example

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

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

&example.outputs.similar;

    Extension: Reflection (version: $Revision$)

&reftitle.seealso;

- `ReflectionExtension::info`
- Constructors