Extracts data from a character-separated values file.
$etl->extract('csv','path/to/file.csv',$options);
Options
Columns
Columns that will be extracted. If null, all columns will be extracted and the first line will be used as the columns names.
Type
Default value
array
null
To select which columns will be extracted, use an array with the columns list:
$options=['columns'=>['id','name','email']];
To rename the columns, use an associative array where the key is the name of the column in the file and the value is the name that will be used in the etl process: