示例#1
0
 public static function getInstance()
 {
     if (!self::$_instance) {
         self::$_instance = new db_connect();
     }
     return self::$_instance;
 }
 public static function getInstance()
 {
     if (!self::$_instance) {
         // If no instance then make one
         self::$_instance = new self();
     }
     return self::$_instance;
 }