Anonymous user
Singleton: Difference between revisions
Added PHP implementation - forgot the header last time, like the idiot that I am.
No edit summary |
(Added PHP implementation - forgot the header last time, like the idiot that I am.) |
||
Line 399:
}</lang>
=={{header|PHP}}==
<lang PHP>class Singleton {
protected static $instance = null;
|