Hello everyone,
I'm developping he website of our sportsclub, and i want to let the members register to the club via the website. I'm trying to use phpexcel to store the members information in an xlsx file, so that the trainers can have acces to these information.
Now my problem comes with the phone numbers:
I'm using the string data type to keep the eading zeros. I'm not using some number format, because the phone numbers can have different length (fix/mobile, or different countries becaus e we live next to the country border).
To insert the information of a new member in the file, I insert a row at the correct place. At that moment, the string data type gets lost and with that all leading zeros.
When printing the values of the cells right before, the zeros are still there, but right after the insertion of the row, the zeros disapear.
Can anyone help me how to keep the leading zeros?
(my server is running php 5.3 and 'm using phpexcel 1.8.0)
I'm developping he website of our sportsclub, and i want to let the members register to the club via the website. I'm trying to use phpexcel to store the members information in an xlsx file, so that the trainers can have acces to these information.
Now my problem comes with the phone numbers:
I'm using the string data type to keep the eading zeros. I'm not using some number format, because the phone numbers can have different length (fix/mobile, or different countries becaus e we live next to the country border).
To insert the information of a new member in the file, I insert a row at the correct place. At that moment, the string data type gets lost and with that all leading zeros.
When printing the values of the cells right before, the zeros are still there, but right after the insertion of the row, the zeros disapear.
Can anyone help me how to keep the leading zeros?
(my server is running php 5.3 and 'm using phpexcel 1.8.0)