Login   Register  
PHP Classes
elePHPant
Icontem

File: simplesingleton-example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 4 years ago
Size: 145 bytes
 

Contents

Class file image Download
// SimpleSingleton sample use

echo SimpleSingleton::getInstance();

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