<?php class Foo{ public static $foo; public static function inst() { self::$foo = new self; } } Foo::inst(); var_dump(Foo::$foo);
You have javascript disabled. You will not be able to edit any code.