this might be a stupid question but …
php
function get_info() { $something = \"test\"; return $something; }
Why not wrap it?
function echo_get_info() { echo get_info(); }
and