src/Reader.php
/**
     * Read the Header first (if not already read), convert it to UTF-8 and set the pointer to next row
     * It is possible to skip leading lines in example the file contains empty or unnecessary lines
     */
Read the Header first (if not already read), convert it to UTF-8 and set the pointer to next row
It is possible to skip leading lines in example the file contains empty or unnecessary lines
Read the Header first ( if not already read ) convert it to UTF - 8 and set the pointer to next row It is possible to skip leading lines in example the file contains empty or unnecessary lines
private function headerRead(): void
    {
        if (false === $this->getStrategy()->hasHeader() || true === $this->headerRead) {
            return;
        }
        $this->rewind();
        $this->skipLeadingLines();
        $this->header = $this->normalizeHeader($this->convertRowToUtf8($this->current()));
        $this->headerRead = true;
        $this->next();
    }
private function headerRead ( ) : void { if ( false === $ this -> getStrategy ( ) -> hasHeader ( ) || true === $ this -> headerRead ) { return ; } $ this -> rewind ( ) ; $ this -> skipLeadingLines ( ) ; $ this -> header = $ this -> normalizeHeader ( $ this -> convertRowToUtf8 ( $ this -> current ( ) ) ) ; $ this -> headerRead = true ; $ this -> next ( ) ; }
Read the Header first (if not already read), convert it to UTF-8 and set the pointer to next row
 It is possible to skip leading lines in example the file contains empty or unnecessary lines
Read the Header first ( if not already read ) convert it to UTF - 8 and set the pointer to next row It is possible to skip leading lines in example the file contains empty or unnecessary lines