|
ReflectionFunction::__constructConstructs a ReflectionFunction object Beschreibung
public ReflectionFunction::__construct
( mixed
$name
)Constructs a ReflectionFunction object. RückgabewerteEs wird kein Wert zurückgegeben. Fehler/Exceptions
A ReflectionException if the Beispiele
Beispiel #1 ReflectionFunction::__construct example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
===> The user-defined function 'counter1'
declared in Z:\reflectcounter.php
lines 7 to 11
---> Documentation:
'/**
* A simple counter
*
* @return int
*/'
---> Static variables: array (
'c' => 0,
)
===> The user-defined function '{closure}'
declared in Z:\reflectcounter.php
lines 18 to 23
---> Documentation:
'/**
* Another simple counter
*
* @return int
*/'
---> Static variables: array (
'd' => 0,
)
|