@@ -807,27 +807,27 @@ which defines the configuration options for the CsvEncoder an associative array:
807
807
808
808
These are the options available:
809
809
810
- ======================= ==================================================== ==========================
811
- Option Description Default
812
- ======================= ==================================================== ==========================
813
- ``csv_delimiter `` Sets the field delimiter separating values (one ``, ``
810
+ ======================= ===================================================== ==========================
811
+ Option Description Default
812
+ ======================= ===================================================== ==========================
813
+ ``csv_delimiter `` Sets the field delimiter separating values (one ``, ``
814
814
character only)
815
- ``csv_enclosure `` Sets the field enclosure (one character only) ``" ``
815
+ ``csv_enclosure `` Sets the field enclosure (one character only) ``" ``
816
816
``csv_escape_char `` Sets the escape character (at most one character)
817
- ``csv_key_separator `` Sets the separator for array's keys during its ``. ``
817
+ ``csv_key_separator `` Sets the separator for array's keys during its ``. ``
818
818
flattening
819
819
``csv_headers `` Sets the order of the header and data columns
820
820
E.g.: if ``$data = ['c' => 3, 'a' => 1, 'b' => 2] ``
821
821
and ``$options = ['csv_headers' => ['a', 'b', 'c']] ``
822
822
then ``serialize($data, 'csv', $options) `` returns
823
- ``a,b,c\n1,2,3 `` ``[] ``, inferred from input data's keys
824
- ``csv_escape_formulas `` Escapes fields containg formulas by prepending them ``false ``
823
+ ``a,b,c\n1,2,3 `` ``[] ``, inferred from input data's keys
824
+ ``csv_escape_formulas `` Escapes fields containg formulas by prepending them ``false ``
825
825
with a ``\t `` character
826
826
``as_collection `` Always returns results as a collection, even if only
827
827
one line is decoded.
828
- ``no_headers `` Disables header in the encoded CSV ``false ``
829
- ``output_utf8_bom `` Outputs special `UTF-8 BOM `_ along with encoded data ``false ``
830
- ======================= ==================================================== ==========================
828
+ ``no_headers `` Disables header in the encoded CSV ``false ``
829
+ ``output_utf8_bom `` Outputs special `UTF-8 BOM `_ along with encoded data ``false ``
830
+ ======================= ===================================================== ==========================
831
831
832
832
The ``XmlEncoder ``
833
833
~~~~~~~~~~~~~~~~~~
0 commit comments