PHP' if' spanning in different code blocks
<p>Ok, someone has just shown me a piece of PHP code and at the end of the file I've seen a stray  <code>&lt;?php } ?&gt;</code> . I thought that should give a compilation error, but it doesn't.</p>

<p>Why is:</p>

<pre><code>&lt;?php
  if(1==1){
?&gt;
X
&lt;?php } ?&gt;
</code></pre>

<p>valid?</p>

<p>Is it safe to split a statement into multiple php blocks?</p>

<p>PS: I was expecting for something more from the answers then  "yes" :D</p>
