解决 PHPEXCEL 纯数字 科学计数的问题


转载自 : http://stackoverflow.com/questions/9635178/how-to-get-phpexcel-to-keep-leading-0s-in-phone-numbers


if($set_field_string){
							$this->phpexcel->setActiveSheetIndex(0)->setCellValueExplicit($a[$key].$row, $userData[$k],PHPExcel_Cell_DataType::TYPE_STRING);
						}else{
							$this->phpexcel->setActiveSheetIndex(0)->setCellValue($a[$key].$row, $userData[$k]);
						}

简单记录一下

你可能感兴趣的:(PHP)