call_user_funcの履歴
$func = 'callback'; $arg1 = 'Hello'; $arg2 = 'World'; $result = call_user_func($func, $arg1, $arg2); echo $result; function callback($arg1, $arg2){ return $arg1 . ' ' . $arg2; }
> Hello World
$func = 'callback'; $arg1 = 'Hello'; $arg2 = 'World'; $result = call_user_func($func, $arg1, $arg2); echo $result; function callback($arg1, $arg2){ return $arg1 . ' ' . $arg2; }
> Hello World