Not everybody is developing on PHP5 these days, even though PHP4 is no longer supported *yikes!*
And these people (namely me) need a way to implement the Singleton pattern.
The Singleton pattern is single-handedly the single most useful pattern when you only ever want to have one instance of a class instantiated at any one time.
Now that we’ve had a few years getting used to using the Singleton pattern (in PHP4) I’d like to summarise the best resources we have on the different ways to implement the Singleton.
[click to continue…]
{ 0 comments }