StringUtilities
class StringUtilities
Methods
Pads a multibyte string to a certain length with another string
No description
Encode a string using a variant of the MIME base64 compatible with URLs.
Decode a string encoded with StringUtilities::encodeInBase64
Details
at line 20
static string
pad(string $input, int $padLength, string $padString = ' ', int $padType = STR_PAD_RIGHT, string $encoding = '')
Pads a multibyte string to a certain length with another string
at line 36
static bool
isSupportedEncoding(string $encoding)
No description
at line 46
static bool
startsWith(string $string, string $start)
deprecated
deprecated
No description
at line 54
static bool
endsWith(string $string, string $end)
deprecated
deprecated
No description
at line 62
static bool
contains(string $string, string $needle)
deprecated
deprecated
No description
at line 75
static string
encodeInBase64(string $string)
Encode a string using a variant of the MIME base64 compatible with URLs.
The '+' and '/' characters used in base64 are replaced by '-' and '_'. The '=' padding is removed.
at line 89
static string
decodeFromBase64(string $string)
Decode a string encoded with StringUtilities::encodeInBase64