phpExcel在单元格中写长号 [英] phpExcel write long number in cell
本文介绍了phpExcel在单元格中写长号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在编写excel文件的同时,我发现很长的数字都是excel中的公式
While writing the excel file is fine I see that really long numbers are formulas in excel
示例:8.71129E + 12
Example: 8.71129E+12
代替:1234567890
instead of: 1234567890
如何在创建PHP Excel的过程中更改格式?
How can I change the format during the PHP Excel Creation?
我正在关注此处的简单示例
推荐答案
$objPHPExcel->getActiveSheet()->setCellValueExplicit('A1', '1234567890', PHPExcel_Cell_DataType::TYPE_STRING);
这篇关于phpExcel在单元格中写长号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文