示例#1
0
 function GetFileContent()
 {
     $csv_source = new CsvBv($_FILES['importfile']['tmp_name'], CsvImport::$separator, CsvImport::$delimiter, CsvImport::$escapor);
     $csv_source->SkipEmptyRows(true);
     $csv_source->TrimFields(true);
     $FileContent = $csv_source->csv2Array();
     return $FileContent;
 }
示例#2
0
 /**
  * Get the file content from the csv file
  *
  * @param string $file file name with path
  *
  * @return array
  */
 function GetFileContent($file)
 {
     $csv_source = new CsvBv($file, CsvImport::$separator, CsvImport::$delimiter, CsvImport::$escapor);
     $csv_source->SkipEmptyRows(true);
     $csv_source->TrimFields(true);
     $FileContent = $csv_source->csv2Array();
     return $FileContent;
 }