You are here

public function ParserCSV::setSkipFirstLine in Feeds 6

Same name and namespace in other branches
  1. 7.2 libraries/ParserCSV.inc \ParserCSV::setSkipFirstLine()
  2. 7 libraries/ParserCSV.inc \ParserCSV::setSkipFirstLine()

Set this to TRUE if the parser should skip the first line of the CSV text, which might be desired if the first line contains the column names. By default, this is set to FALSE and the first line is not skipped.

File

libraries/ParserCSV.inc, line 100

Class

ParserCSV
Functionality to parse CSV files into a two dimensional array.

Code

public function setSkipFirstLine($skipFirstLine) {
  $this->skipFirstLine = $skipFirstLine;
}