You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add type formatter. The original fputcsv function formats (maybe depends on the system) numbers like 1.23. But it would be nice to define for example the decimal separator. So I can define the german comma as a decimal separator 1,23. You can imagine that this applies to any other types, e. g. date and time.
(I know, that you already have a filter mechanism. But the filter is feed with serialized line splitted by the spearator as strings, not with the raw data).
I concur, the standard fputcsv in php7 is not very flexible. I suggest to go to the RFC 4180 that is more specific.
What is missing is a customizable record separator (might be \r or \n or \r\n, or something completely different)
The default behavior of escaping an enclosure by repeating it is rather random, throwing an exception if no escape_char is supplied might actually be good for defensive programming.
Activity
theking2 commentedon May 27, 2020
I concur, the standard fputcsv in php7 is not very flexible. I suggest to go to the RFC 4180 that is more specific.