title: How to correctly format PHP 'IF ELSE' statements?
body: <p>It's been a long running issue that I've come across in many-a-hot-and-steamy coding sessions.</p>
  
  <p>One person codes this way another codes that way. So after much push and pull I'm curious...
  Is there any correct way of phrasing a PHP 'IF ELSE' statement?</p>
  
  <p>Personally I use the:</p>
  
  <pre><code>if ($variable == 'setvalue')
  {
      $variable = executefunctiononvariable($variable);
  } else {
      $variable = executedifferentfunctiononvariable($variable);
  }
  </code></pre>
  
  <p>After many arguments though I've been presented with other options such as:</p>
  
  <pre><code>if ($variable == 'setvalue')
  {
      $variable = executefunctiononvariable($variable);
  }
  else
  {
      $variable = executedifferentfunctiononvariable($variable);
  }
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>if ($variable == 'setvalue')
      $variable = executefunctiononvariable($variable);
  else
      $variable = executedifferentfunctiononvariable($variable);
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>if ($variable == 'setvalue') {
      $variable = executefunctiononvariable($variable);
  } else {
      $variable = executedifferentfunctiononvariable($variable);
  }
  </code></pre>