21,886
社区成员
发帖
与我相关
我的任务
分享
class Singleton {
static private $instance = NULL;
private function __construct() {
}
static public function getInstance() {
if (self::instance == NULL) {
self::instance = new Singleton();
}
return self::instance;
}
}