【发布时间】:2014-05-01 14:06:32
【问题描述】:
我的帖子数据中有一个数字为10,000,我想在数据库中存储为10000.00
我目前有以下:(在 Kohana)
number_format(input::post('amount'),2,'.','');
但这给了我错误:
ErrorException [ Notice ]: A non well formed numeric value encountered
因为$_POST['amount'] = 10,000
有什么建议可以解决这个问题吗?
【问题讨论】:
标签: php decimal number-formatting