Method |
Description |
|
addSlashes ( ) |
Quote string slashes. |
|
append ( string $str ) |
Appends the given string to the current string. |
|
base64Decode ( boolean $webSafe = false ) |
Decode base64 encoded string |
|
base64Encode ( boolean $webSafe = false ) |
Encode string using base64_encode |
|
br2nl ( ) |
Replace HTML line break with newline character. |
|
camelCase ( ) |
Convert string to camelCase |
|
caseFirstLower ( ) |
Make the first character lowercase. |
|
caseFirstUpper ( ) |
Transforms the whole string to lower case, but the first char will be upper case. |
|
caseLower ( ) |
Make a string lowercase. |
|
caseUpper ( ) |
Make a string uppercase. |
|
caseWordUpper ( ) |
Make the first character of every word upper. |
|
charFirstUpper ( ) |
Make the first character uppercase. |
|
chunkSplit ( integer $chunkSize = 76, string $endChar = "
" ) |
Split the string into chunks with each chunk ending with $endChar. |
|
crc32 ( ) |
Calculates the crc32 polynomial of a string. |
|
explode ( string $delimiter, null | integer $limit = null ) : ArrayObject |
Explode the current string with the given delimiter and return ArrayObject with the exploded values. |
|
format ( string | array $args ) |
Format the string according to the provided $format. |
|
hash ( string $algo = 'sha1' ) |
Generate a hash value from the current string using the defined algorithm. |
|
htmlEntityDecode ( ) |
Decode html entities in the current string. |
|
htmlEntityEncode ( string | null $flags = null, string $encoding = 'UTF-8' ) |
Convert all HTML entities to their applicable characters. |
|
kebabCase ( ) |
Convert string to kebab-case |
|
match ( string $regEx, boolean $matchAll = true ) : ArrayObject | boolean |
Preg matches current string against the given regular expression. |
|
md5 ( ) |
Hash current string using md5 algorithm. |
|
nl2br ( ) |
Inserts HTML line breaks before all newlines in a string. |
|
padBoth ( integer $length, string $padString ) |
Pad the string to a certain length with another string. |
|
padLeft ( integer $length, string $padString ) |
Pad the string to a certain length with another string. |
|
padRight ( integer $length, string $padString ) |
Pad the string to a certain length with another string. |
|
parseString ( ) : ArrayObject |
Parse current string as a query string and return ArrayObject with results. |
|
pascalCase ( ) |
Convert string to PascalCase |
|
pluralize ( ) |
Convert string to its plural form |
|
pregReplace ( string $pattern, mixed $replacement, integer $limit, null &$count = null ) |
Replace string using regex |
|
prepend ( string $str ) |
Prepend the given string to the current string. |
|
quoteMeta ( ) |
Quote meta characters. |
|
repeat ( integer $multiplier ) |
Repeats the current string $multiplier times. |
|
replace ( string | array $search, string | array $replace ) |
Replaces the occurrences of $search inside the current string with $replace. |
|
reverse ( ) |
Reverse the string. |
|
sentenceCase ( ) |
Convert string to kebab-case |
|
sha1 ( ) |
Calculate the sha1 hash of a string. |
|
shuffle ( ) |
Shuffle characters in current string. |
|
singularize ( ) |
Convert string to its singular form |
|
slug ( ) |
Create a slug |
|
snakeCase ( ) |
Convert string to snake_case |
|
split ( integer $chunkSize = 1 ) : ArrayObject |
Split the string into chunks. |
|
stripSlashes ( ) |
Un-quote string quoted with StringObject::addSlashes() |
|
stripStartingSlash ( ) |
Strips a slash from the start of the string. |
|
stripTags ( string $whiteList = '' ) |
Remove HTML tags from the string. |
|
stripTrailingSlash ( ) |
Strips trailing slash from the current string. |
|
subString ( integer $startPosition, integer $length ) |
Returns a substring from the current string. |
|
trim ( string | null $char = null ) |
Strip whitespace (or other characters) from the beginning and end of a string. |
|
trimLeft ( string $char ) |
Strip the $char from the start of the string. |
|
trimRight ( string $char ) |
Strip the $char from the end of the string. |
|
truncate ( integer $length, string $ellipsis = '' ) |
Truncate the string to the given length without breaking words. |
|
urlDecode ( ) |
Url decodes the current string. |
|
urlEncode ( ) |
Url encodes the current string. |
|
uuid ( ) : string |
Generate a UUID (GUID) |
|
wordWrap ( integer $length, string $break = "
", boolean $cut = false ) |
Wraps a string to a given number of characters using a string break character. |
|