Метод |
Описание |
|
allowsCallOfMethod ( string $methodName ) : boolean |
All methods are considered safe |
|
charAt ( string $string, integer $index ) : string |
Get the character at a specific position |
|
crop ( string $string, integer $maximumCharacters, string $suffix = '' ) : string |
Crop a string to maximumCharacters length, optionally appending suffix if cropping was necessary. |
|
cropAtSentence ( string $string, integer $maximumCharacters, string $suffix = '' ) : string |
Crop a string to maximumCharacters length, taking sentences into account,
optionally appending suffix if cropping was necessary. |
|
cropAtWord ( string $string, integer $maximumCharacters, string $suffix = '' ) : string |
Crop a string to maximumCharacters length, taking words into account,
optionally appending suffix if cropping was necessary. |
|
endsWith ( string $string, string $search, integer $position = null ) : boolean |
Test if a string ends with the given search string |
|
firstLetterToLowerCase ( string $string ) : string |
Lowercase the first letter of a string |
|
firstLetterToUpperCase ( string $string ) : string |
Uppercase the first letter of a string |
|
htmlSpecialChars ( string $string, boolean $preserveEntities = false ) : string |
Convert special characters to HTML entities |
|
indexOf ( string $string, string $search, integer $fromIndex = null ) : integer |
Find the first position of a substring in the given string |
|
isBlank ( string $string ) : boolean |
Test if the given string is blank (empty or consists of whitespace only) |
|
lastIndexOf ( string $string, string $search, integer $toIndex = null ) : integer |
Find the last position of a substring in the given string |
|
length ( string $string ) : integer |
Get the length of a string |
|
md5 ( string $string ) : string |
Calculate the MD5 checksum of the given string |
|
pregMatch ( string $string, string $pattern ) : array |
Match a string with a regular expression (PREG style) |
|
pregReplace ( string $string, string $pattern, string $replace ) : string |
Replace occurrences of a search string inside the string using regular expression matching (PREG style) |
|
pregSplit ( string $string, string $pattern, integer $limit = null ) : array |
Split a string by a separator using regular expression matching (PREG style) |
|
rawUrlDecode ( string $string ) : string |
Decode the string from URLs according to RFC 3986 |
|
rawUrlEncode ( string $string ) : string |
Encode the string for URLs according to RFC 3986 |
|
replace ( string $string, string $search, string $replace ) : string |
Replace occurrences of a search string inside the string |
|
split ( string $string, string $separator = null, integer $limit = null ) : array |
Split a string by a separator |
|
startsWith ( string $string, string $search, integer $position = null ) : boolean |
Test if a string starts with the given search string |
|
stripTags ( string $string, string $allowableTags = null ) : string |
Strip all HTML tags from the given string |
|
substr ( string $string, integer $start, integer $length = null ) : string |
Return the characters in a string from start up to the given length |
|
substring ( string $string, integer $start, integer $end = null ) : string |
Return the characters in a string from a start index to an end index |
|
toBoolean ( string $string ) : boolean |
Convert a string to boolean |
|
toFloat ( string $string ) : float |
Convert a string to float |
|
toInteger ( string $string ) : integer |
Convert a string to integer |
|
toLowerCase ( string $string ) : string |
Lowercase a string |
|
toString ( mixed $value ) : string |
Convert the given value to a string |
|
toUpperCase ( string $string ) : string |
Uppercase a string |
|
trim ( string $string, string $charlist = null ) : string |
Trim whitespace at the beginning and end of a string |
|