number_format() 函数通过千位分组来格式化数字,但当你的数据库字段为demical时,直接保存会被过滤。
例如: 4,300.05 ,保存到demical字段中时,则为4
所以请用str_replace函数将逗号替换掉再保存。
number_format() 函数通过千位分组来格式化数字,但当你的数据库字段为demical时,直接保存会被过滤。
例如: 4,300.05 ,保存到demical字段中时,则为4
所以请用str_replace函数将逗号替换掉再保存。
$fileContent = trim($fileContent); $fileContent=$queueList->characet($fileContent);