...

function hasil($function) {
$data = 'Halo Indonesia';
return $function($data);
}

echo hasil('input'); // Halo Indonesia

?>