PHP 5.6.0beta1 released

ReflectionExtension::__construct

(PHP 5)

ReflectionExtension::__constructConstructs a ReflectionExtension

Descrierea

public ReflectionExtension::__construct ( string $name )

Construct a ReflectionExtension object.

Parametri

name

Name of the extension.

Valorile întoarse

A ReflectionExtension object.

Exemple

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 $)

Vedeți de asemenea

add a note add a note

User Contributed Notes

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