方法一:前面加空格
$objActSheet->setCellValue('A1', ' '.'330602198804224688');
方法二:【推荐】设置单元格为 文本格式
$objActSheet->setCellValueExplicit('A1', '330602198804224688', PHPExcel_Cell_DataType::TYPE_STRING);
方法三:
$objActSheet->setCellValue('A1', '330602198804224688'); $objActSheet->getStyle('A1')->getNumberFormat()->setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_NUMBER);
摘自:https://blog.csdn.net/qq_34627459/article/details/79196155