Метод |
Описание |
|
crc ( string $string ) : integer |
Generates a crc checksum same on 32 and 64-bit platforms. |
|
cut ( string $string, integer $max = 50, string $etc = '...' ) : string |
Trims a string to given length. |
|
cutWords ( string $string, integer $length = 25, string $etc = '...' ) : string |
Trims all words in a string longer than given length. |
|
escape ( string $string, integer $quoteStyle = ENT_QUOTES, boolean $doubleEncode = false ) : string |
Htmlspecialchars function alias with some parameters automatically set. |
|
fixLineEnding ( string $string, string $lineEnd = "
" ) : string |
Fixes and unifies line endings in a string. |
|
formatBytes ( float $size, string $decimalPoint = ',', string $thousandsSeparator = ' ' ) : string |
Converts given size in bytes to kB, MB, GB, TB or PB
and appends the appropriate unit. |
|
lcfirst ( string $string ) : string |
Converts first character of a string to lowercase. |
|
obfuscateEmail ( string $email, boolean $comment = false ) : string |
Obfuscates an email address. |
|
random ( integer $length ) : string |
Generates a random string of given length. |
|