2010-07-28, 09:58 PM
2010-07-29, 12:36 AM
If you're asking how to put zeroes in front of a number in PHP,
sprintf("%04d", 54) results in "0054"
It's not really possible to change the UIDs themselves. They're stored as integers in the database so leading zeroes will be removed as it goes into the database.
So all you could do is print them out with leading zeroes to the users, or in URLs.
I don't see how that would be useful or desireable though.
sprintf("%04d", 54) results in "0054"
It's not really possible to change the UIDs themselves. They're stored as integers in the database so leading zeroes will be removed as it goes into the database.
So all you could do is print them out with leading zeroes to the users, or in URLs.
I don't see how that would be useful or desireable though.