static attribute inside a class not accessible with object in PHP
<pre><code>class Foo
{
    public static $my_static = 'foo';

    public static function staticValue() {
        return self::$my_static;
    }
}


$foo = new Foo();
print $foo-&gt;staticValue() . "\n";
print $foo-&gt;my_static . "\n"; 
</code></pre>

<p>Why the static attribute is not accessible while static resources are accessible using object in PHP.It is only accessible using '::'.</p>
