Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

creating unique number adding zero 0 in number

Use sprintf()
sprintf('%08d', 1234567);
Alternatively you can also use str_pad:
str_pad($value, 8, '0', STR_PAD_LEFT);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #creating #unique #number #adding #number
ADD COMMENT
Topic
Name
7+2 =