rewind(); $position = 0; while($position < $index && $this->valid()) { $this->next(); $position++; } if (!$this->valid()) { throw new OutOfBoundsException('Invalid seek position'); } } \endcode */ function seek($index); } ?>