PHPexcel逗号样式
我使用PHPexcel库导出数据在我的SQL Server数据库
有没有办法用"Comma Style"
来设置单元格,例如"1000000" as "1,000,000"
?
是的,使用数字格式function
<?php echo number_format(1000000);//will output 1,000,000
尽pipe阅读完整的文档,但是number_format()远远超过了这个function。
我使用PHPexcel库导出数据在我的SQL Server数据库
有没有办法用"Comma Style"
来设置单元格,例如"1000000" as "1,000,000"
?
是的,使用数字格式function
<?php echo number_format(1000000);//will output 1,000,000
尽pipe阅读完整的文档,但是number_format()远远超过了这个function。