PHP < 5.3 – Lazy Singleton Class
I’ve been doing some PHP lately (and liking a lot) and one of the cool features of PHP5 comparing to Actionscript3 is that you can have private constructors, which means that it’s really easy to create “real static classes” and singletons without hacks!
Read more…
Comments (8)