|
ReflectionFunction::__constructConstructs a ReflectionFunction object Description
public ReflectionFunction::__construct(Closurestring
$function )Constructs a ReflectionFunction object. Errors/Exceptions
A ReflectionException if the Examples
Example #1 ReflectionFunction::__construct example
The 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, ) |