We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56a2155 commit 5b1f359Copy full SHA for 5b1f359
1 file changed
src/CSVParser.php src/CSV.phpsrc/CSVParser.php renamed to src/CSV.php
@@ -41,7 +41,7 @@ function parse($data) {
41
if(is_file($data)) {
42
if(is_readable($data)) {
43
//Read data from file
44
- $fileData = file('data.csv', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
+ $fileData = file($data, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
45
$tmpData = [];
46
foreach($fileData as $row) {
47
$tmpData[] = array_map('trim', explode($this->delimiter, $row));
0 commit comments