public function getHeader()
    {
        if (null == $this->header) {
            $header = $this->getNextDataSet();
            if (null === $header) {
                throw new Exception("Cannot retrieve header");
            }
            $this->setHeader($header);
        }

        return $this->header;
    }
public function getHeader()
    {
        if (null == $this->header) {
            $header = $this->getNextDataSet();
            if (null === $header) {
                throw new Exception("Cannot retrieve header");
            }
            $this->setHeader($header);
        }

        return $this->header;
    }
public function getHeader ( ) { if ( null == $ this -> header ) { $ header = $ this -> getNextDataSet ( ) ; if ( null === $ header ) { throw new Exception ( "Cannot retrieve header" ) ; } $ this -> setHeader ( $ header ) ; } return $ this -> header ; }
Return CSV header as array.

@return array
@throws Exception
Return CSV header as array .