Untitled
public php v1 · immutable<?phpclass Singleton { protected static $Instance; protected function __construct(){} public static function __instance() { if(!isset(self::$Instance)) { $c = __CLASS__; self::$Instance = new $c(); } return self::$Instance; }}?>