?????????С????
???????????? ???????[ 2016/2/2 13:38:43 ] ???????????????
?????????????
????1???????????????
????2?????????д???????????
????3???????????????????????
????????????ó???
????1????ó?????????????????????????????л????????????????????????????????????????????????????????????????new?????????????new?????????????????????????
????2??WEB?????е??????????????????????????????
????3??redis?????memcached????????????????????????????????????????????????????????????
??????????????????????????????????????????????????????????????????????????д????????????ο???
??????????????д?????
<?php
/**
*?????????????????????????????????????????????????????????????????????д????????????ο???
*/
class Conf {
//?????????????????????????private
static private $_instance = null;
private $_settings = [];
//??????????????????????
static function getInstance() {
//??η???????????????????????????????????
if (self::$_instance == null) {
self::$_instance = new Conf();
}
//????conf?????
return self::$_instance;
}
//???????????? new ?? clone????????????????????????????е? construct ?? clone
private function __construct() {}
private function __clone() {}
//?????????
function set($index?? $value) {
//????????????????????????????
$this->_settings[$index] = $value;
}
//????????
function get($index) {
//????????????????????????????
return isset($this->_settings[$index]) ? $this->_settings[$index] : '';
}
}
??????

???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11