...

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

echo hasil(); // Halo Indonesia

?>