ClassesBigCommerceCurrencyIntl Formatter

Intl_Formatter

Formatter class for currency values using PHP’s intl extension.

Methods

__construct

Initializes the Intl_Formatter with a specific currency code.

public __construct(string $currency): mixed

Parameters:

ParameterTypeDescription
$currencystringThe currency code (e.g., USD, EUR).

format

Formats a numeric value as a currency string.

public format(float|int|string $value): string

Parameters:

ParameterTypeDescription
$valuefloat|int|stringThe value to format.

Return Value:

The formatted currency value.



Automatically generated on 2025-01-21