Method | Description | |
---|---|---|
format ( mixed $value, |
Formats provided value using optional style properties |
public format ( mixed $value, |
||
$value | mixed | Formatter-specific variable to format (can be integer, \DateTime, etc) |
$locale | Locale to use | |
$styleProperties | array | Integer-indexed array of formatter-specific style properties (can be empty) |
return | string | String representation of $value provided, or (string)$value |