call_user_func
最初の引数で指定したコールバック関数をコールする
&reftitle.description;
mixedcall_user_func
callablecallback
mixedargs
パラメータ callback
で指定したユーザー定義のコールバック関数をコールします。
&reftitle.parameters;
callback
コールする callable。
args
コールバック関数に渡す、ゼロ個以上のパラメータ。
call_user_func のパラメータは
参照渡しではないことに注意しましょう。
call_user_func の例と参照
]]>
&example.outputs;
&reftitle.returnvalues;
コールバック関数の結果を返します。
&reftitle.examples;
call_user_func の例
]]>
&example.outputs;
名前空間を使用した call_user_func
]]>
&example.outputs;
call_user_func でのクラスメソッドの使用
]]>
&example.outputs;
call_user_func でのラムダ関数の使用
]]>
&example.outputs;
&reftitle.notes;
¬e.func-callback-exceptions;
&reftitle.seealso;
call_user_func_array
is_callable
Variable functions
ReflectionFunction::invoke
ReflectionMethod::invoke