2011-07-05 12 views

答えて

37

真剣に。それはフラグです:

$money = money_format("%!n", $money); 
+8

おかげで、EURの€の代わりに使用するためのフラグもあります?? –

+0

'$ money = money_format("€%!n "、$ money);'は私の環境で動作します。残念ながら、サーバーの構成によって異なります。 –

0
// this if for Malaysia , you can check according to your locality 

$number = new NumberFormatter($locale = 'ms_MS.utf8', NumberFormatter::DECIMAL); 
    echo $nmuber->format($amount)."\n"; ## 20,00,00,00,000 
// if this give error 
Class 'NumberFormatter' not found 
// for this you can do you can do a 
apt-get install php7.0-intl 
関連する問題