src/Reader.php
/**
     * Returns the utf-8 converted record from the specified index
     * @param int $lineIndex - zero based $rowIndex without header
     * @return array|null
     * @throws CsvException
     */
Returns the utf-8 converted record from the specified index
@param int $lineIndex - zero based $rowIndex without header
@return array|null
@throws CsvException
Returns the utf - 8 converted record from the specified index @param int $lineIndex - zero based $rowIndex without header @return array|null @throws CsvException
public function readRecordAtIndex(int $lineIndex): ?array
    {
        if (0 > $lineIndex) {
            throw new OutOfRangeException('$lineIndex must be a non negativ Integer.');
        }
        if (0 > ($rowCount = $this->getRecordCount())) {
            throw new \InvalidArgumentException('File does not contain any records.');
        }
        if ($rowCount < $lineIndex) {
            throw new OutOfRangeException(
                '$lineIndex is greater than the row count. File contains ' . $rowCount . ' records.'
            );
        }
        $this->headerRead();
        $this->setRecordPointerToIndex($lineIndex);
        $record = $this->readRecord();
        return $record;
    }
public function readRecordAtIndex ( int $ lineIndex ) : ? array { if ( 0 > $ lineIndex ) { throw new OutOfRangeException ( '$lineIndex must be a non negativ Integer.' ) ; } if ( 0 > ( $ rowCount = $ this -> getRecordCount ( ) ) ) { throw new \ InvalidArgumentException ( 'File does not contain any records.' ) ; } if ( $ rowCount < $ lineIndex ) { throw new OutOfRangeException ( '$lineIndex is greater than the row count. File contains ' . $ rowCount . ' records.' ) ; } $ this -> headerRead ( ) ; $ this -> setRecordPointerToIndex ( $ lineIndex ) ; $ record = $ this -> readRecord ( ) ; return $ record ; }
Returns the utf-8 converted record from the specified index
 @param int $lineIndex - zero based $rowIndex without header
 @return array|null
 @throws CsvException
Returns the utf - 8 converted record from the specified index @param int $lineIndex - zero based $rowIndex without header @return array|null @throws CsvException
// First Read Header because it used a rewind()