When PHP exports csv format, the beginning of 0 will be omitted by office software. How to deal with it?

for example,
0386
will be displayed as
386
can not be displayed even if the tool is converted to xls

.
Jun.03,2021

0386 = > `0386 . This is how the export of WeChat Pay is handled. When exporting excel in xls or xlsx format with a backquote


, it can be set to text format, so that the preceding zeros will not be omitted, and scientific calculation will not be used when the number is very large. Csv should have similar settings

Menu