Class Str
- Deimos\Helper\AbstractHelper implements Deimos\Helper\InterfaceHelper
- Deimos\Helper\Helpers\Str\Str uses Deimos\Helper\Helpers\Str\DefaultTrait
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
#
random( integer $length = 32, integer $type =
Return random string |
protected
string
|
|
public
string
|
|
public
float
|
|
public
string
|
__construct()
|
capitalize(),
len(),
low(),
pos(),
repeat(),
shuffle(),
sub(),
toNumber(),
upp()
|
string |
DIGITS
|
#
'0123456789'
|
string |
ALPHABET_LOW
|
#
'abcdefghijklmnopqrstuvwxyz'
|
string |
ALPHABET_HIGH
|
#
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
string |
ALPHABET
|
#
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
integer |
RAND_ALPHA_LOW
|
#
1
|
integer |
RAND_ALPHA_HIGH
|
#
2
|
integer |
RAND_ALPHA
|
#
4
|
integer |
RAND_DIGITS
|
#
8
|
integer |
RAND_ALL
|
#
16
|
protected
array
|
$dictionary
|
#
[
4 => self::ALPHABET . self::DIGITS,
3 => self::DIGITS,
2 => self::ALPHABET,
1 => self::ALPHABET_HIGH,
0 => self::ALPHABET_LOW,
]
|
$helper
|