早睡早起,方能养生!
Sleep early rise early, way to keep healthy!

数字补0

super
2020-09-27 17:44
views 864

$number = 1024;
echo sprintf('%02d', $number); // 1024
echo sprintf('%06d', $number); // 001024





分享
0 条讨论
top