singleton()
singleton()
This must be defined here rather than the abstract class because of scope issues the function should follow this implementation public static function singleton() { echo '<b>singleton['.__METHOD__.']['.__CLASS__.']</b>'; if (!isset(self::$instance)) { $c = __CLASS__; self::$instance = new $c; }
return self::$instance; }