ReflectionExtension::__construct

(PHP 5, PHP 7, PHP 8)

ReflectionExtension::__constructConstructs a ReflectionExtension

Beschreibung

public ReflectionExtension::__construct(string $name)

Construct a ReflectionExtension object.

Parameter-Liste

name

Name of the extension.

Fehler/Exceptions

Throws ReflectionException if the extension to reflect does not exist.

Beispiele

Beispiel #1 ReflectionExtension example

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

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

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

Extension: Reflection (version: $Revision$)

Siehe auch

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top