首页
>
编程开发
>
PHP生成随机六位数,不足六位两边补零
PHP生成随机六位数,不足六位两边补零
//生成随机六位数,不足六位两边补零 str_pad(mt_rand(0, 999999), 6, "0", STR_PAD_BOTH);