ReflectionFunction::invokeArgs
引数を指定して関数を起動する
&reftitle.description;
public mixedReflectionFunction::invokeArgs
arrayargs
関数を起動して、その引数を配列として渡します。
&reftitle.parameters;
args
関数に渡す引数を含む配列。
call_user_func_array と同じように動作します。
&reftitle.returnvalues;
起動した関数の結果を返します。
&reftitle.changelog;
&Version;
&Description;
8.0.0
args のキーは、
静かに無視されるのではなく、パラメータの名前として解釈されるようになりました。
&reftitle.examples;
ReflectionFunction::invokeArgs の例
invokeArgs(array('Dr', 'Phil'));
?>
]]>
&example.outputs;
ReflectionFunction::invokeArgs で参照を使う例
invokeArgs(array($conditions, &$false_conditions));
var_dump($false_conditions);
?>
]]>
&example.outputs;
bool(false)
[1]=>
int(0)
}
]]>
&reftitle.notes;
&reflection.invoke.reference;
&reftitle.seealso;
ReflectionFunction::invoke
ReflectionFunctionAbstract::getNumberOfParameters
__invoke()
call_user_func_array