Home  >  Article  >  Backend Development  >  PHPExcel 当输出时间戳那样的数目字时,变成这样了!

PHPExcel 当输出时间戳那样的数目字时,变成这样了!

WBOY
WBOYOriginal
2016-06-13 12:30:11780browse

PHPExcel 当输出时间戳那样的数字时,变成这样了!!!



php那边拿到的数据就是一串数字2009061503335(时间戳)。
用PHPExcel输出后就成了2.00906E+12

我想要让它正常的显示这个时间戳,因为订单编号就是按时间戳来做的。

$PHPExcel->getActiveSheet()->getStyle('A1')->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_TEXT);
这个放进去,还是一样,什么原因?

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