title: PHP boolean TRUE / FALSE?
body: <p>I can't figure this out.</p>
  
  <p>If I type:</p>
  
  <pre><code>function myfunction(){
      ......
      if ...
          return TRUE;
      if ...
          return FALSE;
  }
  </code></pre>
  
  <p>Why can't I use it like this:</p>
  
  <pre><code>$result = myfunction();
  if ($result == TRUE)
  ...
  if ($result == FALSE)
  ...
  </code></pre>
  
  <p>Or do I have to use:</p>
  
  <pre><code>$result = myfunction();
  if ($result == 1)
  ...
  if ($result == 0)
  ...
  </code></pre>
  
  <p>Or this:</p>
  
  <pre><code>$result = myfunction();
  if ($result)
  ...
  if (!$result)
  ...
  </code></pre>