I have a variable which contains the value 1234567
.
I would like it to contain exactly 8 digits, i.e. 01234567
.
Is there a PHP function for that?
转载于:https://stackoverflow.com/questions/1699958/formatting-a-number-with-leading-zeros-in-php
I have a variable which contains the value 1234567
.
I would like it to contain exactly 8 digits, i.e. 01234567
.
Is there a PHP function for that?
转载于:https://stackoverflow.com/questions/1699958/formatting-a-number-with-leading-zeros-in-php