You can use ob_get_clean() and get rid of the next line.