- /**
- * 2017-06-14
- * @used-by \Df\Translation\Js::_toHtml()
- * @param string $filePath
- * @param \Closure|bool|mixed $onError [optional]
- * @return array(string => string)|mixed
- */
- function df_csv_parse_file($filePath, $onError = true) {return df_try(function() use($filePath) {
- /** @var Csv $csv */
- $csv = df_o(Csv::class);
- $csv->setDelimiter(',');
- return $csv->getDataPairs($filePath);
- }, $onError);}