标签:oba var details style tail echo div net 数字
<?php $var=sprintf("%02d", 2);//生成2位数,不足前面补0 echo $var;//结果为02 ?>
參考:https://blog.csdn.net/shaobaojie/article/details/17268627
标签:oba var details style tail echo div net 数字
原文地址:https://www.cnblogs.com/clubs/p/10138767.html