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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e44b21-4c1de.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e44b21-4c1de.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?