我遇到问题,我试图用php生成5或7个字符长的数字代码,但是以下代码确实包含字母,我只需要数字,请提前感谢
$newgid = substr(md5(microtime()),rand(0,9),5);
php random numbers
numbers ×1
php ×1
random ×1