Reading numbers as text format with PHPExcel

前端 未结 5 1026
醉梦人生
醉梦人生 2020-12-08 08:30

I have an array that can store numbers in such as 01, 01A, 01B, 02, 2, and When I get this value using PHPExcel, it\'s being removed the \'0\'s in case of 01, 02, for exampl

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-08 08:58

    $objPHPExcel
       ->getActiveSheet()
       ->getCellByColumnAndRow($col, $row)
       ->setValueExplicit($value, PHPExcel_Cell_DataType::TYPE_STRING);
    

提交回复
热议问题