title: Is there any way to return HTML in a PHP function? (without building the return value as a string)
body: <p>I have a PHP function that I'm using to output a standard block of HTML. It currently looks like this: </p>
  
  <pre><code>&lt;?php function TestBlockHTML ($replStr) { ?&gt;
      &lt;html&gt;
      &lt;body&gt;&lt;h1&gt; &lt;?php echo ($replStr) ?&gt; &lt;/h1&gt;
      &lt;/html&gt;
  &lt;?php } ?&gt;
  </code></pre>
  
  <p>I want to return (rather than echo) the HTML inside the function. Is there any way to do this without building up the HTML (above) in a string?</p>