[nycphp-talk] PHP addition and leading zeros
Aaron Fischer
agfische at email.smith.edu
Tue Jan 30 23:23:37 EST 2007
I am retrieving a four digit value from a mysql db. It is an
unsigned zerofill field so there are leading zeros.
I add 0001 to the value. However, I find that I lose my leading
zeros, which I want to keep. I also tried incrementing the value but
that produces the same result.
Any suggestions for how to keep the leading zeros?
Thanks,
-Aaron
More information about the talk
mailing list