Can I make an alias class name in PHP?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1279081/getting-static-property-from-a-class-with-dynamic-class-name-in-php">Getting static property from a class with dynamic class name in PHP</a>  </p>
</blockquote>



<blockquote>
  <p>Take a quick look before you are going to reading my question:</p>
</blockquote>

<p>In PHP we can:</p>

<p>Code:</p>

<pre><code>&lt;?php
    class Foo
    {
        const TOUCH_ME = 1;
        public function __construct()
        {
        }
    }
    $class = 'Foo';
    $object = new $class();
    $type = $object instanceof Foo;
    echo $type;//Expect to 1
?&gt;
</code></pre>

<p>Output:</p>

<pre><code>1
</code></pre>

<hr>

<p><strong>And my question is, how can I do:</strong></p>

<p>Code:</p>

<pre><code>&lt;?php
    class Foo
    {
        const TOUCH_ME = 1;
        public function __construct()
        {
        }
    }
    $class = 'Foo';
    $var = $class::TOUCH_ME;
?&gt;
</code></pre>

<p>Output:</p>

<blockquote>
  <p>An error</p>
</blockquote>

<p>So, how can I do that? Or am I stupid?</p>
