mixed call_user_func ( function callback [, mixed param1 [, mixed ...]] ) calls an existing PHP function : call_user_func « Functions « PHP






mixed call_user_func ( function callback [, mixed param1 [, mixed ...]] ) calls an existing PHP function

 
<?
    $func = "str_replace";
    $output_single = call_user_func($func, "monkeys", "giraffes", "Hundreds and
    thousands of monkeys\n");
?>
  
  








Related examples in the same category