摘要:
<?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... 阅读全文