File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -842,7 +842,14 @@ Option Description De
842842``csv_escape_char `` Sets the escape character (at most one character)
843843``csv_key_separator `` Sets the separator for array's keys during its ``. ``
844844 flattening
845- ``csv_headers `` Sets the headers for the data ``[] ``, inferred from input data's keys
845+ ``csv_headers `` Sets the order of the header and data columns
846+ E.g.: $this->serializer->serialize(
847+ ['c' => 3,'a' => 1,'b' => 2],
848+ 'csv',
849+ ['csv_headers' => ['a', 'b', 'c']]);
850+ returns
851+ a,b,c
852+ 1,2,3 ``[] ``, inferred from input data's keys
846853``csv_escape_formulas `` Escapes fields containg formulas by prepending them ``false ``
847854 with a ``\t `` character
848855``as_collection `` Always returns results as a collection, even if only
You can’t perform that action at this time.
0 commit comments