call_user_func

(PHP 3>= 3.0.3, PHP 4 >= 4.0.0)

call_user_func -- Zavolat u╛ivatelskou funkci urΦenou prvnφm argumentem

Popis

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

Zavolß u╛ivatelsky definouvanou funkci urΦenou argumentem function_name. Zva╛te nßsledujφcφ ukßzku:

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