pilgrim
public php v1 · immutable<?phpclass Singleton { private function __construct() { } // end of '__construct()' public static function getInstance() { static $self; if ( !is_object($self) ) $self = new Singleton; return $self; } // end of 'getInstance()' } // end of 'Singleton{}'$single = Singleton::getInstance();?>