class PHPIntl implements FormatterInterface

Properties

protected NumberFormatter $formatter

Number formatter instance.

Methods

__construct()

Create a new instance.

string
format(float $value, string $code = null)

Format the value into the desired currency.

Details

at line 20
__construct()

Create a new instance.

at line 28
string format(float $value, string $code = null)

Format the value into the desired currency.

Parameters

float $value
string $code

Return Value

string