Skip to content

Commit ab238c7

Browse files
committed
Tweak
1 parent 6d74c1a commit ab238c7

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

components/serializer.rst

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -843,13 +843,9 @@ Option Description De
843843
``csv_key_separator`` Sets the separator for array's keys during its ``.``
844844
flattening
845845
``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
846+
E.g.: ``serialize(['c' => 3,'a' => 1,'b' => 2],
847+
'csv', ['csv_headers' => ['a', 'b', 'c']]);``
848+
returns ``a,b,c\n1,2,3 `` ``[]``, inferred from input data's keys
853849
``csv_escape_formulas`` Escapes fields containg formulas by prepending them ``false``
854850
with a ``\t`` character
855851
``as_collection`` Always returns results as a collection, even if only

0 commit comments

Comments
 (0)