随机生成10位不重复的CODE
幻冰小站 浏览次数:500 2020-08-14 15:40:45
//随机生成code
function createCode($scaleCode = 'A'){
    $code = time().rand('1000','9999');
    $code = base_convert($code,10,32);
    $code = $scaleCode.$code;
    return strtoupper($code);
    }