ReflectionFunction::__constructReflectionFunction オブジェクトを作成する 説明
public ReflectionFunction::__construct(Closurestring
$function)ReflectionFunction オブジェクトを作成します。 エラー / 例外
例
例1 ReflectionFunction::__construct の例 上の例の出力は、 たとえば以下のようになります。
===> The user-defined function 'counter1'
declared in Z:\reflectcounter.php
lines 7 to 11
---> Documentation:
'/**
* 簡単なカウンタ
*
* @return int
*/'
---> Static variables: array (
'c' => 0,
)
===> The user-defined function '{closure}'
declared in Z:\reflectcounter.php
lines 18 to 23
---> Documentation:
'/**
* 別の簡単なカウンタ
*
* @return int
*/'
---> Static variables: array (
'd' => 0,
)
|