MoneyFormatter
in package
implements
FormatterInterface
Money Formatter.
Formats monetary values using store settings.
Interfaces, Classes and Traits
- FormatterInterface
- FormatterInterface.
Table of Contents
- format() : string
- Format a given price value and return the result as a string without decimals.
Methods
format()
Format a given price value and return the result as a string without decimals.
public
format(int|float|string $value[, array<string|int, mixed> $options = [] ]) : string
Parameters
- $value : int|float|string
-
Value to format. Int is allowed, as it may also represent a valid price.
- $options : array<string|int, mixed> = []
-
Options that influence the formatting.