摘要:
echo "单件模式 控件PHP类的实例化次数";class text{ const name="text"; public static $havenew = false; public $name = "我被限制为只能实例化一次!"; protected static $o_self; private function __construct() { } public function __destruct() { self::$havenew = false; } public static function initer() 阅读全文