title: calling a method from another method in same PHP class
body: <p>I'm trying to use a method from within another method in a class. I don't have much experience in PHP5 OOP, and I looked around for answers, but couldn't find any. I'm trying to use getClientInfo() in sendRequest(), which is in the same class.</p>
  
  <pre><code>class DomainHandler {
  
      public static function getClientInfo($db, $client_id)
      {
          //Do stuff
      }
  
      public static function sendRequest($details)
      {
  
          require_once('MySQL.class.php');
          $db = new MySQL;
  
          getClientInfo($db, $client);
      }
  }
  </code></pre>
  
  <p>And it tells me:</p>
  
  <blockquote>
    <p>Fatal error: Call to undefined
    function getClientInfo()</p>
  </blockquote>
  
  <p>I've also tried </p>
  
  <pre><code>parent::getClientInfo($db, $client); 
  </code></pre>
  
  <p>and </p>
  
  <pre><code>$this-&gt;getClientInfo($db, $client);
  </code></pre>
  
  <p>to no avail.</p>
  
  <p>Any ideas?</p>