php的随机验证码,字母和数字的组合,使用循环,随机数。 代码: <?php $yuan = '123456789abcdefghigklmnopqrstyvwxyz'; $arr = str_split($yuan); echo '<pre>'; print_r($arr