随机验证码直接使用random_int(1000,9999),和教程有什么不一样呢
$code = str_pad(random_int(1, 9999), 4, 0, STR_PAD_LEFT);
$code = random_int(1000, 9999);
着两个有什么不一样吗
推荐文章: