code: public function seek($offset)
      {
          $this->rewind();
          for ($i = 0; $i < $offset; $i++, $this->next());
      }
docs: Moves the internal iterator to the specified offset
  
  @param int $offset The offset to seek to.