title: PHP: Multiple statements in a ternary expression
body: <p>I have a function that looks something like this:</p>
  
  <pre><code>function fun()
  {
     $pMana &lt; 20 ? error(1) : $pMana -= 20;
     //do stuff
  }
  </code></pre>
  
  <p>I want when the error function is called, it also exits the function, something like this</p>
  
  <pre><code>function fun()
  {
     $pMana &lt; 20 ? (error(1); return) : $pMana -= 20; //invalid syntax
     //do stuff
  }
  </code></pre>
  
  <p>I have yet to see a ternary expression able to handle more than one statement like this, but I'm new to this. Is it possible?</p>