PHP Classes

File: simplesingleton-example.php

Recommend this page to a friend!
  Classes of freedelta  >  Simple Singleton  >  simplesingleton-example.php  >  Download  
File: simplesingleton-example.php
Role: Example script
Content type: text/plain
Description: Class sample use
Class: Simple Singleton
Create singleton objects
Author: By
Last change: Completed this file
Date: 12 years ago
Size: 145 bytes


Class file image Download
// SimpleSingleton sample use

echo SimpleSingleton::getInstance();

// Will output:
// Invoking constructor
// Getting only one instance

For more information send a message to info at phpclasses dot org.