03 2017 档案

摘要:obj)){ $this->obj[] = $observer; } } /** * @desc 取消观察者观察 * **/ public function detach($observer){ $key = array_search($observer, $this->obj); ... 阅读全文
posted @ 2017-03-18 17:08 李思琼 阅读(401) 评论(1) 推荐(0)
摘要:name = $name; } public function getName(){ return $this->name; } } $single1 = single::getIns(); $single2 = single::getIns(); $single1->setName('hello world!'); $single2->setName('hello php!... 阅读全文
posted @ 2017-03-15 10:20 李思琼 阅读(316) 评论(0) 推荐(0)
摘要:getDb('mysql'); $db->conn(); //测试结果输出:恭喜您,mysql数据库连接成功 阅读全文
posted @ 2017-03-14 17:42 李思琼 阅读(273) 评论(0) 推荐(0)