我目前正在使用 PHP money_format()
function ,并且此时有 money_format('%.0i', $row['price'])
输出如下内容:DKK 199.900
- 有没有办法可以将其输出为 199.900 DKK
?
最佳答案
改用number_format
(这也是跨操作系统兼容的):
$value = number_format($value, [decimal places]).' DKK';
关于php - Money_format,移动 'currency name',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9667155/