All pastes #447963 Raw Edit

Untitled

public php v1 · immutable
·published 2007-04-19 12:15 UTC
rendered paste body
<?php    class Singleton {        private static $instance;                public static function getInstance() {            if ((self::$instance instanceof Singleton) === FALSE) {                self::$instance = new Singleton();            }                         return self::$instance;        }                private __construct() {            // codice costruttore        }    }        $Test = Test::getInstance();?>