如何用php随机生成字母?

2025-03-30 13:46:10
推荐回答(1个)
回答1:

for ($i = 1; $i <= 4; $i++) {
echo chr(rand(97, 122));
}
97~122是小写的英文字母
65~90是大写的