Scientific notation of ID number is prohibited when php exports csv

WBOY
Release: 2016-07-25 08:55:06
Original
1656 people have browsed it
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.



source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template