PHP conditions and echoing HTML
<p>When I'm using PHP and HTML I normally do it this way:</p>

<pre><code>&lt;?php if ($myvar = 'blah') {
   echo '&lt;div&gt;some html here&lt;/div&gt;';
} else {
   echo 'Nothing here';
}
?&gt;
</code></pre>

<p>This works but I now have a bunch of html and I need to add a condition and I am trying to avoid having to do this:</p>

<pre><code>&lt;?php if ($myvar = 'blah') {
   echo '&lt;div&gt;some html here&lt;/div&gt;';
   echo '&lt;div&gt;some other html here&lt;/div&gt;';
   echo '&lt;div&gt;some other html here&lt;/div&gt;';
}
?&gt;
</code></pre>

<p>Is there a way to wrapper the whole of the html block instead?</p>
