Метод |
Описание |
|
bytes ( string $value, array $format = [] ) : string |
Formats a string as bytes. |
|
custom ( string $value, callable | array $format ) : string |
Formats a string by a custom callable. |
|
date ( string $value, string $format = '' ) : string |
Formats a string by date(). |
|
email ( string $value, array $format = [] ) : string |
Formats a string as email link. |
|
format ( string $value, string $formatType, mixed $format ) : string |
Formats a string by the given format type. |
|
nl2br ( string $value ) : string |
Formats a string by nl2br. |
|
number ( string $value, array $format = [] ) : string |
Formats a string by number_format(). |
|
sprintf ( string $value, string $format = '' ) : string |
Formats a string by sprintf(). |
|
strftime ( string $value, string $format = '' ) : string |
Formats a string by strftime(). |
|
truncate ( string $value, array $format = [] ) : string |
Truncates a string. |
|
url ( string $value, array $format = [] ) : string |
Formats a string as link. |
|
version ( string $value, string $format ) : string |
Formats a version string by sprintf(). |
|
widont ( string $value ) : string |
Avoid widows in a string. |
|