Is there correct/better way to cross html into php and vice versa
<p>I sometimes download sample code like everyone else does to save time and not have to reinvent wheels</p>

<p>I just came across this after a pretty complex code function so the person who wrote it seems to know what they're doing PHP wise:</p>

<pre><code>&lt;?php if (isset($menu)) { ?&gt;
    &lt;?php echo $menu; ?&gt;
  &lt;?php } ?&gt;
</code></pre>

<p>Why would you not instead write:</p>

<pre><code>&lt;?php if (isset($menu)) { echo $menu; } ?&gt;
</code></pre>

<p>Curious as to which is better and if so why?</p>
