💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
### Str随机字符 * * * * * ~~~ /** * 随机字符 * @param int $length 字符长度(小于1报错) * @param int $type 字符类型 //type1:0-9 //type2:0-9a-z //type3:0-9a-zA-Z //type4:0-9a-zA-Z~!@#$%^&*()_+`-=[]{};'"\|:<>?, ./ * @return string 生成的字符 */ //得到指定类型随机字符 Str::randomString(int $length = 4, int $type = 3) : string //得到随机字符(高安全) Str::random(int $lenth) : string[0-9a-zA-Z] //快速得到一个字符串 Str::quickRandom(int $lenth) : string[0-9a-zA-Z] //得到随机的加密字符 Str::randomBytes(int $lenth) : string[???] ~~~