title: In PHP, does elseif need a final else statement?
body: <p>Is it ok to leave out the final else statement in an elseif block in PHP. Is this code OK</p>
  
  <pre><code>if ( condition ):
     // code
  elseif ( othercondition ):
     // more code
  endif;
  </code></pre>
  
  <p>or should it have else at the end ?</p>
  
  <pre><code>if ( condition ):
     // code
  elseif ( othercondition ):
     // more code
  else
     // more code
  endif;
  </code></pre>
  
  <p>I'm sure it must be but I cant get it confirmed anywhere. Edit - I've tried it and it works but I just want to be sure.</p>