Reading numbers as text format with PHPExcel

前端 未结 5 1021
醉梦人生
醉梦人生 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:56

    You can format value to text with add charater before or after value. Example add after value charater ";"

    $objPHPExcel->getActiveSheet()->setCellValueByColumnAndRow(1, $row,$user->msisdn.';' );
    

提交回复
热议问题