Blogger Information
Blog 51
fans 0
comment 1
visits 64961
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
PHPExcel导出设置单元格格式
鱼的熊掌
Original
1910 people have browsed it
  1. $PHPExcel = new \PHPExcel();
  2. $PHPExcel->getActiveSheet()->getStyle('A1')->getNumberFormat()->setFormatCode('@'); //将A1设置成文本 @
  3. $PHPExcel->getActiveSheet()->getStyle('A')->getNumberFormat()->setFormatCode('@'); //将A列设置成文本 @
  1. 单元格类型具体查看 PHPEXCEL/Style/NumberFormat.php

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post