I've been using callback function like this:
private function make_f($arg1, $arg2)
{
$callback =
function ($my_var) use ($arg1, $arg2)
{
return $my_var * $arg1 * arg2;
};
return $callback;
}
It supports by PHP 5.3.0 but my hosting provider has PHP 5.2.6 so it doesn't work. Is there any way to repair this somehow?