时间:2021-07-01 10:21:17 帮助过:11人阅读
$amount = '12345.67'; $formatter = new NumberFormatter('en_GB', NumberFormatter::CURRENCY); echo 'UK: ' . $formatter->formatCurrency($amount, 'EUR') . PHP_EOL; $formatter = new NumberFormatter('de_DE', NumberFormatter::CURRENCY); echo 'DE: ' . $formatter->formatCurrency($amount, 'EUR') . PHP_EOL;
希望本文所述对大家的php程序设计有所帮助。