This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
http://php.net/manual/en/function.money-format.php
http://php.net/manual/en/function.money-format.php
您应该看看 http://php.net/manual/en/function .number-format.php
You should have a look at http://php.net/manual/en/function.number-format.php
使用
number_format
设置显示数字的格式。第一个参数是要显示多少位小数。如果指定 2 并且该数字没有十分之一或百分之一的位置,则会自动用 0 填充。Format numbers for display with
number_format
. The first parameter is how many decimal places you want to show. If you specify 2 and the number does not have a tenths or hundredths place, it'll get padded with 0s automatically.