title: What are the different ways of writing "if" conditional statements using PHP?
body: <p>What are the different ways of writing if conditional statements using PHP?</p>
  
  <p>I know for example of the following</p>
  
  <pre><code>if($test == 1){
  }else{
  }
  </code></pre>
  
  <p>and </p>
  
  <pre><code>if($test == 1)
     echo 'asdsa';
  else
     echo 'sdaaa';
  </code></pre>