|
ReflectionFunction::__constructConstructs a ReflectionFunction object Description
public ReflectionFunction::__construct
( mixed
$name
)Constructs a ReflectionFunction object. Return ValuesNo value is returned. Errors/Exceptions
A ReflectionException if the Examples
Example #1 ReflectionFunction::__construct example
<?phpThe above example will output something similar to:
===> 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,
)
|