迭代器
摘要:
fp = fopen($filename, 'r'); } //在每次迭代之前初始化某些操作 public function rewind() { rewind($this->fp); $this->cur = fgets($this->fp); $this->nxt = fgets($this->fp); return true; } //获取当前元素的键 public function key() { return $this->lineCount++; } ... 阅读全文
posted @ 2013-07-10 09:35 mtima 阅读(185) 评论(0) 推荐(0)
浙公网安备 33010602011771号