title: HTML into PHP Variable (HTML outside PHP code)
body: <p>I am new to php and wondering if I can have something like this:</p>
  
  <pre><code>&lt;?php
   ...
   magicFunctionStart();
  ?&gt;
  
  &lt;html&gt;
     &lt;head&gt;...&lt;/head&gt;
     &lt;body&gt;...&lt;/body&gt;
  &lt;/html&gt;
  
  &lt;?php
   $variable = magicFunctionEnd();
   ...
  ?&gt;
  </code></pre>
  
  <p>What I have to use right now is</p>
  
  <pre><code>&lt;?php
   ...
   $variable = "&lt;html&gt;&lt;head&gt;...&lt;/head&gt;&lt;body&gt;...&lt;/body&gt;&lt;/html&gt;"
  ?&gt;
  </code></pre>
  
  <p>Which is annoying and not readable.</p>