src/Dev/CSVParser.php
public function mapColumns($columnMap)
    {
        if ($columnMap) {
            $lowerColumnMap = array();

            foreach ($columnMap as $k => $v) {
                $lowerColumnMap[strtolower($k)] = $v;
            }

            $this->columnMap = array_merge($this->columnMap, $lowerColumnMap);
        }
    }
public function mapColumns($columnMap)
    {
        if ($columnMap) {
            $lowerColumnMap = array();

            foreach ($columnMap as $k => $v) {
                $lowerColumnMap[strtolower($k)] = $v;
            }

            $this->columnMap = array_merge($this->columnMap, $lowerColumnMap);
        }
    }
public function mapColumns ( $ columnMap ) { if ( $ columnMap ) { $ lowerColumnMap = array ( ) ; foreach ( $ columnMap as $ k => $ v ) { $ lowerColumnMap [ strtolower ( $ k ) ] = $ v ; } $ this -> columnMap = array_merge ( $ this -> columnMap , $ lowerColumnMap ) ; } }
Re-map columns in the CSV file.

This can be useful for identifying synonyms in the file. For example:

<code>
$csv->mapColumns(array(
'firstname' => 'FirstName',
'last name' => 'Surname',
));
</code>

@param array
Re - map columns in the CSV file .