This page shows you a clean way of separating the PHP from the XHTML code using the heredoc syntax in PHP.
This example also uses the print command, which is functionally equivalent to echo. It outputs some text.