单例模式
class CenterManager
{
        private static $_instance;

        static public function GetInstance(){
            if (!self::$_instance instanceof self) {
                self::$_instance = new self();
            }
            return self::$_instance;
        }
}

首页 我的博客
粤ICP备17103704号