PHP Classes

File: MyClass.php

Recommend this page to a friend!
  Classes of Sebastian Potasiak   Multi Singleton   MyClass.php   Download  
File: MyClass.php
Role: Example script
Content type: text/plain
Description: Example class
Class: Multi Singleton
Implementation of the singleton design pattern
Author: By
Last change: No changes in code. Version in comment updated.
Date: 14 years ago
Size: 388 bytes
 

Contents

Class file image Download
<?php
    
/**
     * class MyClass
     * Example class for Singleton
     *
     * @version: 1.0.1
     * @author: Sebastian Potasiak
     * @update: 2009-12-10
     * @license: GNU/GPL
     */
    
final class MyClass extends Singleton
    
{
          public function
sayHello()
          {
               print(
"Hello world!\n");
          }
     }
?>