<?php $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $code = ''; for ($i = 0; $i < 9; $i++) { $index = rand(0, strlen($characters) - 1); $code .= $characters[$index]; } echo $code;
技术QQ交流群:157711366
技术微信:liehuweb
写评论