All pastes #758276 Raw Edit

Untitled

public php v1 · immutable
·published 2007-11-02 01:39 UTC
rendered paste body
<?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;	}}?>