public function seekToKey($mKey, $bStrictMode = true)
    {
        $this->rewind();
        if ($bStrictMode === true) {
            while (true === $this->valid() and $mKey !== $this->key()) {
                $this->next();
            }
        } else {
            while (true === $this->valid() and $mKey != $this->key()) {
                $this->next();
            }
        }
        if (false === $this->valid()) {
            throw new \OutOfBoundsException('Invalid seek position: ' . $mKey);
        }

        return $this->current();
    }
public function seekToKey($mKey, $bStrictMode = true)
    {
        $this->rewind();
        if ($bStrictMode === true) {
            while (true === $this->valid() and $mKey !== $this->key()) {
                $this->next();
            }
        } else {
            while (true === $this->valid() and $mKey != $this->key()) {
                $this->next();
            }
        }
        if (false === $this->valid()) {
            throw new \OutOfBoundsException('Invalid seek position: ' . $mKey);
        }

        return $this->current();
    }
public function seekToKey ( $ mKey , $ bStrictMode = true ) { $ this -> rewind ( ) ; if ( $ bStrictMode === true ) { while ( true === $ this -> valid ( ) and $ mKey !== $ this -> key ( ) ) { $ this -> next ( ) ; } } else { while ( true === $ this -> valid ( ) and $ mKey != $ this -> key ( ) ) { $ this -> next ( ) ; } } if ( false === $ this -> valid ( ) ) { throw new \ OutOfBoundsException ( 'Invalid seek position: ' . $ mKey ) ; } return $ this -> current ( ) ; }
Try to seek to given offset

@param mixed $mKey
@param bool  $bStrictMode

@return mixed
@throws \OutOfBoundsException
Try to seek to given offset