How does php return a value of 000001 instead of 1?
phpcn_u1582
phpcn_u1582 2017-06-23 09:11:36
0
4
599

EG: Fixed 6-digit length, 000001, 000002, 000003,......

Increase in turn.

phpcn_u1582
phpcn_u1582

reply all(4)
仅有的幸福
str_pad($number, 6, '0', STR_PAD_LEFT);
typecho
sprintf("%06d", $num);
曾经蜡笔没有小新
    echo sprintf("%'06d\n", 1);
Peter_Zhu

sprintf("%06d", $num);

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template