\DtApp\ThinkLibrary\helperRandoms

随机管理类

Summary

Methods
Properties
Constants
generate()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

generate()

generate(integer  $length = 6, integer  $type = 1) : string

生成随机

Parameters

integer $length

长度

integer $type

类型,1 纯数字,2 纯小写字母,3 纯大写字母,4 数字和小写字母,5 数字和大写字母,6 大小写字母,7 数字和大小写字母

Throws

\Exception

Returns

string