Knowledge Base

January 29, 2008

PHP Singleton Object

Filed under: Technical — Tags: , — rkutti @ 1:58 pm

The singleton pattern is a design pattern that is used to restrict instantiation of a class to one object. This is useful when exactly one object is needed to coordinate actions across the system.

Here is an example, that demonstrates this singleton pattern: (more…)

Blog at WordPress.com.