摘要: <?php/** * PHP collection 类(一) */error_reporting(0);class Collection{ protected $_members = array(); public function addItem($obj,$key = null){ if(empty($key)) throw new Exception("The key is not given!"); if(isset($this->_members[$key])) throw new Exception("The key is exist... 阅读全文
posted @ 2012-08-01 00:55 ﹏Sakura 阅读(2133) 评论(0) 推荐(0) 编辑