Метод |
Описание |
|
__call ( $method, $args ) : mixed | Str |
Unknown methods calls will be handled by various integrations. |
|
__construct ( string $string = '' ) |
|
|
__toString ( ) : string |
|
|
between ( $start, $end ) : Str |
Get the string between the given start and end. |
|
concat ( $string ) : Str |
Concatenate a string. |
|
contains ( array | string $needle, boolean $caseSensitive = false, boolean $absolute = false ) : boolean |
Alias for find. |
|
firstSegment ( string $delimiter ) : Str |
Get the first segment from a string based on a delimiter. |
|
lastSegment ( string $delimiter ) : Str |
Get the last segment from a string based on a delimiter. |
|
offsetExists ( mixed $offset ) : boolean |
Whether a offset exists. |
|
offsetGet ( mixed $offset ) : mixed |
Offset to retrieve. |
|
offsetSet ( mixed $offset, mixed $value ) |
Offset to set. |
|
offsetUnset ( mixed $offset ) |
Offset to unset. |
|
pop ( string $delimiter ) : Str |
Pop (remove) the last segment of a string based on a delimiter. |
|
possessive ( ) : Str |
Get the possessive version of a string. |
|
prefix ( $string ) : Str |
Prefix a string. |
|
replaceFirst ( $search, $replace ) : Str |
Replace the first occurrence of a string. |
|
replaceLast ( $search, $replace ) : Str |
Replace the last occurrence of a string. |
|
segment ( string $delimiter, integer $index ) : Str |
Get a segment from a string based on a delimiter. |
|
suffix ( $string ) : Str |
Suffix a string. |
|
tease ( integer $length = 200, string $moreTextIndicator = '...' ) : Str |
Shortens a string in a pretty way. It will clean it by trimming
it, remove all double spaces and html. If the string is then still
longer than the specified $length it will be shortened. The end
of the string is always a full word concatinated with the
specified moreTextIndicator. |
|
toLower ( ) : Str |
Convert the string to lowercase. |
|
toUpper ( ) : Str |
Convert the string to uppercase. |
|
trim ( string $characterMask = "
" ) : Str |
Strip whitespace (or other characters) from the beginning and end of a string. |
|