title: Why can't you use an inline if statement to return?
body: <p>I seems that there is a limitation to using an inline if statement in PHP when you want to return.</p>
  <pre><code>function example($Variable)
  {
      ( (int) (++$Variable) == 1 ) ? return true : return false;
  }
  
  $test = example(1);
  </code></pre>
  <p><strong>Expected: <code>false</code></strong></p>
  <p>This gives an error which is strange because I have never seen this before.</p>
  <blockquote>
  <p>Error type : 4</p>
  <p>Message : syntax error, unexpected 'return' (T_RETURN)</p>
  </blockquote>
  <p>Can anyone explain why you cannot use the return inside an if statement like this?</p>