xgnic 发表于 2018-2-11 11:52:13


            本文实例为大家分享了php生出随机字符串的具体代码,供大家参考,具体内容如下
function generateRandomString($length = 10) {
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$randomString = '';
for ($i = 0; $i
页: [1]
查看完整版本: php生出随机字符串