title: why does the class_exists function return false?
body: <p>In the following script I check the <code>class_exists</code> function. What is the scope of this function ? It returns <code>false</code> for this script when I test for this class.</p>
  
  <pre><code>&lt;?php
  namespace my;
  class Tester {      
      public function check() {
          $classname = 'Tester';
          if(class_exists($classname)) {
              echo "class exists ! &lt;br /&gt;";
          } else {
              echo "class doesn't exist ! &lt;br /&gt;";
          }
      }
  }   
  
  $obj = new Tester();
  $obj-&gt;check();
  </code></pre>
  
  <p><em>Output : class doesn't exist</em></p>