In PHP, is it possible to use money_format to display money without showing the currency or at least showing it in an abbreviated form?
Currently, I use:
$money = "1234.56";
setlocale("LC_ALL", "de_DE");
$money = money_format("%n", $money);
!
Seriously. that's the flag:
$money = money_format("%!n", $money);
try number_format($money)
http://php.net/manual/en/function.number-format.php
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With