I have stored some numaric data with varchar datatype in database, something like ( 00005 ) as studentid
After retrieving it from database, i want to auto increment it by 1 like below:
echo $data['studentid']+1; ---> but the result will be only 6, the zero's are removed, because it being changed from string to integer.
My Question is that: Is there any possiblity that the result would be like 00006 not only 6?
Please help me regarding the issue and advise me about my mistakes and suggest me for better ways to do it.