ReflectionFunctionAbstract::getNumberOfParameters
(PHP 5 >= 5.3.0, PHP 7)
ReflectionFunctionAbstract::getNumberOfParameters — パラメータ数を取得する
説明
public ReflectionFunctionAbstract::getNumberOfParameters ( ) : int
関数で定義されているパラメータの数を、必須と任意の両方を含めて取得します。
警告 この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
パラメータ
この関数にはパラメータはありません。
返り値
パラメータの数を返します。
参考
- ReflectionFunctionAbstract::getNumberOfRequiredParameters() - 必須パラメータの数を取得する
- func_num_args() - 関数に渡された引数の数を返す