function getResult($a,$b,$f){ return $f($a) + $f($b); } function maxs($x){ if($x>10) return 20; else return 5; } echo getResult(11,9,'maxs');
function getResult($a,$b,$f){ return $f($a) + $f($b); } function maxs($x){ if($x>10) return 20; else return 5; } echo getResult(11,9,'maxs');