PHP uses Numberformatter format currency method, PHP currency format
This example describes how PHP uses Numberformatter to format the currency. Share to everyone for your reference. The implementation method is as follows:
$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;
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/970980.html www.bkjia.com true http://www.bkjia.com/PHPjc/970980.html techarticle PHP uses the Numberformatter format currency method, PHP currency formatting This article describes the way PHP uses Numberformatter format currency. Share to everyone for your reference. Concrete Reality ...