ReflectionExtension::__construct

(PHP 5)

ReflectionExtension::__constructConstructs a ReflectionExtension

Опис

public ReflectionExtension::__construct ( string $name )

Construct a ReflectionExtension object.

Параметри

name

Name of the extension.

Значення, що повертаються

A ReflectionExtension object.

Приклади

Приклад #1 ReflectionExtension example

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

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

Наведений вище приклад виведе щось подібне до:

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

Прогляньте Також

add a note add a note

User Contributed Notes

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