Méthode |
Description |
|
append ( $input, $append ) : string |
Append characters to a string |
|
capitalize ( string $input ) : string |
Capitalize words in the input sentence |
|
date ( mixed $input, string $format ) : string |
Formats a date using strftime |
|
divided_by ( float $input, float $operand ) : float |
division |
|
downcase ( string $input ) : string |
Convert an input to lowercase |
|
escape ( string $input ) : string |
Escape a string |
|
first ( array $input ) : mixed |
Returns the first element of an array |
|
join ( array $input, string $glue = ' ' ) : string |
Joins elements of an array with a given character between them |
|
last ( array $input ) : mixed |
Returns the last element of an array |
|
minus ( float $input, float $operand ) : float |
subtraction |
|
modulo ( integer $input, integer $operand ) : integer |
modulo |
|
newline_to_br ( string $input ) : string |
Replace each newline (\n) with html break |
|
plus ( float $input, float $operand ) : float |
addition |
|
prepend ( $input, $prepend ) : string |
Prepend characters to a string |
|
remove ( string $input, string $find ) : string |
Remove all occurrences of a string. |
|
remove_first ( string $input, string $find ) : string |
Remove first occurrence of a string. |
|
replace ( string $input, string $find, string $replace ) : string |
Replace all occurrences of a string with another. |
|
replace_first ( string $input, string $find, string $replace ) : string |
Replace first occurrence of a string with another. |
|
size ( mixed $input ) : integer |
Return the size of an array or of an string |
|
split ( string $input, string $pattern ) : array |
Split input string into an array of substrings separated by given pattern. |
|
strip_html ( string $input ) : string |
Removes html tags from text |
|
strip_newlines ( string $input ) : string |
Strip all newlines (\n, \r) from string |
|
times ( float $input, float $operand ) : float |
multiplication |
|
truncate ( string $input, integer $characters = 100 ) : string |
Truncate a string down to x characters |
|
truncatewords ( string $input, integer $words = 3 ) : string |
Truncate string down to x words |
|
upcase ( string $input ) : string |
Convert an input to uppercase |
|