Singleton Classes in PHP
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 11471
Total Votes: 141 votes
Category: PHP/Object Oriented
Submitted on: 2013-05-26 17:36:47
Submitted By: Chara Miteo
Description:This tutorial describes how to create and use singleton classes in PHP. In this tutorial we'll learn how to create and use singleton classes. A singleton class is a class that can be instantiated only once. This is may be useful when only one object of certain class is needed to coordinate across your system. While it may not come up frequently, it can be a useful technique when it simply doesn't make sense to have more than one instance of a class. More detail...