Correct format for strings / numbers beginning with zero?

后端 未结 6 1544
梦谈多话
梦谈多话 2020-12-03 01:31

I\'m trying to use PHP to create a file containing a list of phone numbers. It\'s working OK however if the phone number begins with zero, the digit is dropped from the Exce

6条回答
  •  情歌与酒
    2020-12-03 01:41

    If for some reason the answers above don't work, you can simply try to wrap your data in quotes, something like this:

    setCellValue('A1, '"' . $phone . '" ')
    

    But your value will be surrounded by quotes in your file as well.

提交回复
热议问题