title: When do I use if/endif versus If{}?
body: <p>Well the question is self explanatory.</p>
  
  <p>In PHP when do I use the <code>if/endif</code> notation instead of the standard <code>if(something){}</code> notation?</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;?php if($a == 5): ?&gt;
  A is equal to 5
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>Versus:</p>
  
  <pre><code>&lt;?php if($a == 5){ ?&gt;
  A is equal to 5
  &lt;?php } ?&gt;
  </code></pre>