title: How to return TRUE|FALSE from class in PHP
body: <p>I was wondering why my php program is not returning the correct TRUE FALSE value when the class is included elsewhere</p>
  
  <p>it goes something like this</p>
  
  <pre><code>source: signup.php
  
  class signup
  {
      function buildProfile()
      {
          if($logic){
              $this-&gt;success = TRUE;
          }else{
             $this-&gt;success = FALSE;
          }
      }
      function __construct()
      {
          $this-&gt;success = NULL;
          $this-&gt;buildProfile
          return $this-&gt;success;
      }
  }
  </code></pre>
  
  <p>and elsewhere I do</p>
  
  <pre><code>include('signup.php');
  
  $signup = new signup();
  
  if($signup){
      successFunction();
  }else....
  </code></pre>
  
  <p>but it's not getting $signup == true, it's getting FALSE every time</p>