title: PHP: How to access a namespace class with :: instead of \?
body: <p>I use <code>namespace</code> for a class like this below,</p>
  
  <p>class_tidy.php,</p>
  
  <pre><code>namespace foo;
  
  class tidy {
      public function hello() {
          echo 'Hello';
      }
  }
  </code></pre>
  
  <p>index.php,</p>
  
  <pre><code>class MyAutoloader
  {
      public static function load($className)
      {
          $parts = explode('\\', $className);
          require 'classes/class_'.end($parts) . '.php';
      }
  }
  
  spl_autoload_register("\MyAutoloader::load");
  
  $test = new foo\tidy();
  $test-&gt;hello();
  </code></pre>
  
  <p>It works perfectly, but I wonder if I can access the class, instead of,</p>
  
  <pre><code>$test = new foo\tidy();
  </code></pre>
  
  <p>But,</p>
  
  <pre><code>$test = new foo::tidy(); 
  </code></pre>
  
  <p>Which looks prettier. but with this error,</p>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE
    or '$' ...</p>
  </blockquote>