i produce a csv as well as in one area i have a variable that have 01 . However in csv it show only one. Basically use single cotes additionally, it show in csv like: '01', that is incorrect. can someone assist me to?

Have you attempt to convert it right into a string ? You should use strval() in PHP to achieve that.