Skip to content

Commit 183ffbb

Browse files
committed
Update README.md
1 parent af636bf commit 183ffbb

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ $lazyCsvCollection = SimpleCsv::import(storage_path('collection.csv'));
3131

3232
### Empty Keys to Null
3333

34-
PHP's 'putcsv' doesn't support writing `null` to csv files. The LazyCsvCollection returned by the import method
35-
exposes a lazy 'emptyToNull' method that will convert empty array keys to null values for convenience.
34+
PHP's `fputcsv()` doesn't support writing `null` to csv files as it's not a string. The LazyCsvCollection returned by the import method
35+
exposes a lazy `emptyToNull()` method that will convert empty values to null for convenience.
3636

3737
```php
3838
use BayAreaWebPro\SimpleCsv\SimpleCsv;
@@ -81,11 +81,9 @@ return SimpleCsv::download([...], 'download.csv');
8181
```php
8282
use Illuminate\Support\Facades\Config;
8383

84-
Config::set('simple-csv', [
85-
'delimiter' => '?',
86-
'enclosure' => '?',
87-
'escape' => '?',
88-
]);
84+
Config::set('simple-csv.delimiter', ...);
85+
Config::set('simple-csv.enclosure', ...);
86+
Config::set('simple-csv.escape', ...);
8987
```
9088

9189
## Or, Create a Config File

0 commit comments

Comments
 (0)