public function seek($position)
    {
        if (!isset($this->errors[$position])) {
            throw new OutOfBoundsException('The offset '.$position.' does not exist.');
        }

        reset($this->errors);

        while ($position !== key($this->errors)) {
            next($this->errors);
        }
    }
public function seek($position)
    {
        if (!isset($this->errors[$position])) {
            throw new OutOfBoundsException('The offset '.$position.' does not exist.');
        }

        reset($this->errors);

        while ($position !== key($this->errors)) {
            next($this->errors);
        }
    }
public function seek ( $ position ) { if ( ! isset ( $ this -> errors [ $ position ] ) ) { throw new OutOfBoundsException ( 'The offset ' . $ position . ' does not exist.' ) ; } reset ( $ this -> errors ) ; while ( $ position !== key ( $ this -> errors ) ) { next ( $ this -> errors ) ; } }
Sets the position of the iterator.

@param int $position The new position

@throws OutOfBoundsException If the position is invalid
Sets the position of the iterator .