Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksagona committed Oct 30, 2023
1 parent 159523b commit 39c795b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,13 @@ Where serializing or unserializing CSV data, there are a set of options availabl

```php
$options = [
'delimiter' => ',' // Delimiter, defaults to ',' - could be "\t" or something else
'enclosure' => '"' // Default string enclosure, i.e. "my data","other data"
'escape' => '"' // String character to escape in the data, i.e. "my ""data"" here"
'fields' => true // Include the field names in the first row
'newline' => true // Allow newlines in a data cell. Set to false to trim them
'limit' => 0 // Character limit of a data cell. 0 means no limit
'omit' => ['id'] // An array of fields to omit from displaying
'delimiter' => ',' // Delimiter defaults to ',' - could be "\t" or something else
'enclosure' => '"' // Default string enclosure, i.e. "my data","other data"
'escape' => '"' // String character to escape in the data, i.e. "my ""data"" here"
'fields' => true // Include the field names in the first row
'newline' => true // Allow newlines in a data cell. Set to false to trim them
'limit' => 0 // Character limit of a data cell. 0 means no limit
];
```

Expand Down

0 comments on commit 39c795b

Please sign in to comment.