How to end if statement in php <p>The question is pretty much self-explanatory, I am having trouble how to end if statement in php.</p> <p>For example,</p> <pre><code>&lt;?php if (argument) { // end if statement } else if (different argument) { // end if statement } else if (another different argument) { // end if statement } else { // do something } ?&gt; </code></pre>