All pastes #758263 Raw Edit

Untitled

public php v1 · immutable
·published 2007-11-02 01:16 UTC
rendered paste body
<?phpclass Singleton {		private static $instance = null;		private Singleton() {			}		public getInstance() {		if($this->instance == null) {			$this->instance = new Singleton();		}		else {			return $this->instance;		}	}		}?>