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);