Untitled
public php v1 · immutable<?phpclass Singleton { private static $instance = null; private Singleton() { } public getInstance() { if($this->instance == null) { $this->instance = new Singleton(); } else { return $this->instance; } } }?>