this might be a stupid question but …
php
function get_info() { $something = \"test\"; return $something; }
You can use the special tags:
<?= get_info(); ?>
Or, of course, you can have your function echo the value:
function get_info() { $something = "test"; echo $something; }