StringUtil
class StringUtil (View source)
Various PHP string related utility functions.
Methods
static boolean
endsWith(string $input, string $suffix)
Return true if the first paramater contains the second parameter at the end.
static boolean
startsWith(string $input, string $prefix)
Return true if the input string starts with the prefix string.
static string
base64UrlEncode(string $input)
Base64 encode a string, ensuring that the output is safe to use in a URL.
static string
base64UrlDecode(string $input)
Base64 decode a string that was encoded with base64UrlEncode.
Details
at line 37
static boolean
endsWith(string $input, string $suffix)
Return true if the first paramater contains the second parameter at the end.
at line 50
static boolean
startsWith(string $input, string $prefix)
Return true if the input string starts with the prefix string.
at line 61
static string
base64UrlEncode(string $input)
Base64 encode a string, ensuring that the output is safe to use in a URL.
at line 72
static string
base64UrlDecode(string $input)
Base64 decode a string that was encoded with base64UrlEncode.