protected function readRow($handle, $chunkSize)
    {
        $row = str_getcsv($this->readLine($handle, 0), $this->separator, $this->delimiter);

        if ($this->isSkippableRow($row)) {
            return [];
        }

        if (!$this->hasHeader) {
            return array_map( function ($value) { return $this->convertEncoding($value); }, $row);
        }

        $namedRow = [];

        foreach ($this->header as $i=>$column) {
            $namedRow[$column] = $this->convertEncoding($row[$i]);
        }

        return $namedRow;
    }
protected function readRow($handle, $chunkSize)
    {
        $row = str_getcsv($this->readLine($handle, 0), $this->separator, $this->delimiter);

        if ($this->isSkippableRow($row)) {
            return [];
        }

        if (!$this->hasHeader) {
            return array_map( function ($value) { return $this->convertEncoding($value); }, $row);
        }

        $namedRow = [];

        foreach ($this->header as $i=>$column) {
            $namedRow[$column] = $this->convertEncoding($row[$i]);
        }

        return $namedRow;
    }
protected function readRow ( $ handle , $ chunkSize ) { $ row = str_getcsv ( $ this -> readLine ( $ handle , 0 ) , $ this -> separator , $ this -> delimiter ) ; if ( $ this -> isSkippableRow ( $ row ) ) { return [ ] ; } if ( ! $ this -> hasHeader ) { return array_map ( function ( $ value ) { return $ this -> convertEncoding ( $ value ) ; } , $ row ) ; } $ namedRow = [ ] ; foreach ( $ this -> header as $ i => $ column ) { $ namedRow [ $ column ] = $ this -> convertEncoding ( $ row [ $ i ] ) ; } return $ namedRow ; }
Read the next row from the file

@param resource $handle
@param int      $chunkSize (ignored)

@return array
Read the next row from the file