src/FS/File/CSV/Reader.php
public function getColumnHeaders()
	{
		if( !$this->withHeaders )
			throw new RuntimeException( 'Column headers not enabled' );
		$iterator	= new FS_File_CSV_Iterator( $this->fileName, $this->delimiter );
		if( !$iterator->valid() )
			throw new RuntimeException( 'Invalid CSV file' );
		return $iterator->current();
	}
public function getColumnHeaders()
	{
		if( !$this->withHeaders )
			throw new RuntimeException( 'Column headers not enabled' );
		$iterator	= new FS_File_CSV_Iterator( $this->fileName, $this->delimiter );
		if( !$iterator->valid() )
			throw new RuntimeException( 'Invalid CSV file' );
		return $iterator->current();
	}
public function getColumnHeaders ( ) { if ( ! $ this -> withHeaders ) throw new RuntimeException ( 'Column headers not enabled' ) ; $ iterator = new FS_File_CSV_Iterator ( $ this -> fileName , $ this -> delimiter ) ; if ( ! $ iterator -> valid ( ) ) throw new RuntimeException ( 'Invalid CSV file' ) ; return $ iterator -> current ( ) ; }
Returns columns headers if used.
@access		public
@return		array
Returns columns headers if used .