function getDataFromCsvFile($options) { $filename = $this->getFilename($options); $path = $this->getCsvPath($filename); $csv = new CSVReader(); $csv->useHeaderAsIndex(); $this->setRow($csv, $options); return $csv->getData($path); }
function readCsvFile($path) { $csv = new CSVReader(); $csv->useHeaderAsIndex(); return $csv->data($path); }