title: PHP what is wrong with the syntax of this code?
body: <p>I'm building some simple validation rules in php and my IDE (phped) is complaining about the syntax.</p>
  
  <p>Can anyone tell me what is wrong with the following?</p>
  
  <pre><code>function notBlank($str) {
      (strlen($str) == 0) ? return false : return true;
  }
  </code></pre>
  
  <p>phped complains of 'unexpected return'</p>
  
  <p>Any advice appreciated.</p>
  
  <p>Thanks.</p>