ReflectionFunction::__construct(PHP 5) ReflectionFunction::__construct — Constructs a ReflectionFunction object ОписаниеConstructs a ReflectionFunction object. Возвращаемые значенияЭта функция не возвращает значения после выполнения. ОшибкиA ReflectionException if the name parameter does not contain a valid function. Примеры
Пример #1 ReflectionFunction::__construct() example
<?phpРезультатом выполнения данного примера будет что-то подобное:
===> 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,
)
|
||