creating unique number adding zero 0 in number

92

Use sprintf()
sprintf('%08d', 1234567);
Alternatively you can also use str_pad:
str_pad($value, 8, '0', STR_PAD_LEFT);

Comments

Submit
0 Comments