public static function getInstance() { if (is_null(self::$instance)) { self::$instance = new Database(); } return self::$instance; }
public static function getInstance() { if (!isset(self::$instance)) { $object = __CLASS__; self::$instance = new $object(); } return self::$instance; }