|
NumberFormatter::formatCurrencynumfmt_format_currencyFormat a currency value BeschreibungObjektorientierter Stil
public
string
NumberFormatter::formatCurrency
( float
$value
, string $currency
)Prozeduraler Stil
string
numfmt_format_currency
( NumberFormatter
$fmt
, float $value
, string $currency
)Format the currency value according to the formatter rules. Parameter-Liste
RückgabewerteString representing the formatted currency value. BeispieleBeispiel #1 numfmt_format_currency example
<?phpBeispiel #2 OO example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: 1.234.567,89 € 1.234.567,89 RUR 1 234 567,89€ 1 234 567,89р. Siehe auch
|