@@ -833,27 +833,27 @@ which defines the configuration options for the CsvEncoder an associative array:
833
833
834
834
These are the options available:
835
835
836
- ======================= ==================================================== ==========================
837
- Option Description Default
838
- ======================= ==================================================== ==========================
839
- ``csv_delimiter `` Sets the field delimiter separating values (one ``, ``
836
+ ======================= ===================================================== ==========================
837
+ Option Description Default
838
+ ======================= ===================================================== ==========================
839
+ ``csv_delimiter `` Sets the field delimiter separating values (one ``, ``
840
840
character only)
841
- ``csv_enclosure `` Sets the field enclosure (one character only) ``" ``
841
+ ``csv_enclosure `` Sets the field enclosure (one character only) ``" ``
842
842
``csv_escape_char `` Sets the escape character (at most one character)
843
- ``csv_key_separator `` Sets the separator for array's keys during its ``. ``
843
+ ``csv_key_separator `` Sets the separator for array's keys during its ``. ``
844
844
flattening
845
845
``csv_headers `` Sets the order of the header and data columns
846
846
E.g.: if ``$data = ['c' => 3, 'a' => 1, 'b' => 2] ``
847
847
and ``$options = ['csv_headers' => ['a', 'b', 'c']] ``
848
848
then ``serialize($data, 'csv', $options) `` returns
849
- ``a,b,c\n1,2,3 `` ``[] ``, inferred from input data's keys
850
- ``csv_escape_formulas `` Escapes fields containg formulas by prepending them ``false ``
849
+ ``a,b,c\n1,2,3 `` ``[] ``, inferred from input data's keys
850
+ ``csv_escape_formulas `` Escapes fields containg formulas by prepending them ``false ``
851
851
with a ``\t `` character
852
852
``as_collection `` Always returns results as a collection, even if only
853
853
one line is decoded.
854
- ``no_headers `` Disables header in the encoded CSV ``false ``
855
- ``output_utf8_bom `` Outputs special `UTF-8 BOM `_ along with encoded data ``false ``
856
- ======================= ==================================================== ==========================
854
+ ``no_headers `` Disables header in the encoded CSV ``false ``
855
+ ``output_utf8_bom `` Outputs special `UTF-8 BOM `_ along with encoded data ``false ``
856
+ ======================= ===================================================== ==========================
857
857
858
858
.. versionadded :: 4.4
859
859
0 commit comments