Singleton Pattern in PHP

In software engineering, a design pattern is a general solution to a common problem in software design. A design pattern isn’t a finished design that can be transformed directly into code, it is a description or template for how to solve a problem that can be used in many different situations.

One of these design patterns is called the Singleton. It’s purpose can be described quite briefly as follows:

Ensure a class has only one instance and provide a global point of access to it.

read more | digg story



0 Responses to “Singleton Pattern in PHP”


  1. No Comments

Leave a Reply




October 2007
M T W T F S S
    Nov »
1234567
891011121314
15161718192021
22232425262728
293031  

Close
E-mail It