<?php
/**
 * Definition of MyClass 
 */
class MyClass {
    static $member = 1;
    const constMember = 2;
    static function method() {
    	$a = MyClass::constMember;
    	$myCls = 'MyClass';
    	$myCls = "MyClass";
    	new $myCls;
        return MyClass::constMember;
    }
}
$obj = new MyClass();
MyClass::$member = 3;
$b = MyClass::constMember;
?>