_array = $data; $this->_count = count($this->_array); $this->f = reset($this->_array); if ($this->f === false) $this->EOF = true; } function recordCount() { return $this->_count; } function moveNext() { $this->f = next($this->_array); if ($this->f === false) $this->EOF = true; } } ?>