final class single{
		protected static $ins=null;
		protected function __construct(){}
		public static function getIns(){
			if(self::$ins==null){
				self::$ins = new self();
			}
			return self::$ins;
		}
		protected function __clone(){}
	}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-30
  • 2022-12-23
  • 2021-10-01
  • 2021-12-11
  • 2021-11-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-04
  • 2022-01-07
  • 2021-11-05
  • 2021-10-16
  • 2021-12-10
  • 2022-12-23
相关资源
相似解决方案