(mixed) call_function($function, $a, $b, $c, $d, $e)

Arguments

(function) $function Callback function to be executed. This function should be created using create_function.
(mixed) $a, $b, $c, $d, $e Arguments to be passed to the function to be called. Up to five arguments can be passed to the function.

call_function() returns the result of the executed function.

Example

<pinp>
  load("mod_util.php");
$concat = util::create_function('$a,$b', 'return $a.$b;');
  echo util::call_function($concat, "test", "123");
</pinp>