Home  >  Article  >  Backend Development  >  Scientific notation of ID number is prohibited when php exports csv

Scientific notation of ID number is prohibited when php exports csv

WBOY
WBOYOriginal
2016-07-25 08:55:061604browse
Let me share with you how to prevent the ID number from being displayed in scientific notation when exporting a csv file using PHP. Friends in need can refer to it.

Actually, it’s very simple.

PHP exports the csv file. After opening it, you will find that the ID number is expressed using scientific notation.

Solution: Add "t" in front

Tips: The method of exporting to phpexcel is the same as above. Just add a " " space in front. For more information, please refer to: php export csv, php generate csv.



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn