USD_Formatter
Formatter class for currency values specifically in USD.
- Full name:
\BigCommerce\Currency\USD_Formatter - This class implements:
\BigCommerce\Currency\Currency_Formatter
Methods
format
Formats a numeric value as a USD currency string.
public format(float|int|string $value): stringParameters:
| Parameter | Type | Description |
|---|---|---|
$value | float|int|string | The value to format. |
Return Value:
The formatted currency value in USD.
Automatically generated on 2025-01-21