11.11云上盛惠!海量產(chǎn)品 · 輕松上云!云服務(wù)器首年1.8折起,買1年送3個(gè)月!超值優(yōu)惠,性能穩(wěn)定,讓您的云端之旅更加暢享??靵眚v訊云選購吧!
單態(tài)模式(Singleton Pattern) 就是一個(gè)類Class只有一個(gè)實(shí)例存在。(Ensure a class only has one instance, and provide a global point of access to it.) 這個(gè)是php5的寫法。