Entry 3289
singleton
Submitted by Pavel
on March 9, 2010 at 8:42 a.m.
Language: PHP. Code size: 252 bytes.
<?php class Register{ private static $instance; public function __construct() { self::$instance = $this; } public static function &get_instance() { return self::$instance; } } ?>
This snippet took 0.00 seconds to highlight.
Back to the Entry List or Home.