パラメータ
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()
も参照下さい。