Set header row number
public setHeaderRowNumber ( integer $rowNumber, integer $duplicates = null ) : boolean | ||
$rowNumber | integer | Number of the row that contains column header names |
$duplicates | integer | How to handle duplicates (optional). One of: - CsvReader::DUPLICATE_HEADERS_INCREMENT; increments duplicates (dup, dup1, dup2 etc.) - CsvReader::DUPLICATE_HEADERS_MERGE; merges values for duplicate headers into an array (dup => [value1, value2, value3]) |
return | boolean |