php - excel导出,怎么设置单元格式
阿神
阿神 2017-04-10 14:24:08
0
2
625

我使用的是最原始的输出\t \n 的方式
现在遇到超过16位的数字,这样就变成了科学计数的方式
不能使用table和PHPExcel的方式
有什么好的办法能够把数字转成字符串
前后加空格的方式都测试过了,不行

阿神
阿神

闭关修行中......

reply all(2)
迷茫

"=\"{$column}\""这样就行了

if(is_numeric($column)) {
    $column = "=\"{$column}\"";
}
迷茫

数字:vnd.ms-excel.numberformat:#,##0.00
遇见过,看这里http://www.blogjava.net/Hopes/article...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template