Google

NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7">

call_user_func

(PHP 3>= 3.0.3, PHP 4 )

call_user_func --  最初の引数で指定したユーザ関数をコールする

説明

mixed call_user_func ( string function_name [, mixed parameter [, mixed ...]])

パラメータfunction_nameで指定したユーザ定義 関数をコールします。次のようにして下さい。

function barber ($type) {
    print "You wanted a $type haircut, no problem";
}
call_user_func ('barber', "mushroom");
call_user_func ('barber', "shave");

call_user_func_array(), call_user_method(), call_user_method_array()も参照下さい。