Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[Serializer] CsvEncoder no header option (encode / decode) #29283
This PR wants to introduce a new context option for the CsvEncoder,
By default this is assumed to be false, so the headers are included in the CSV output or assumed to be present in the CSV input.
When the option is set to true, the following behaviour occurs.
The following PHP input
array(array('a','b'), array('c', 'd'))
will generate this CSV output
Considering the CSV input to be
the following PHP array will be returned
array ( 0 => array ( 0 => 'a', 1 => 'b', ), 1 => array ( 0 => 'c', 1 => 'd', ), )