我在将数字更改为number_format值时遇到问题,但是当我使函数php echo number_format时出现这样的错误
遇到了格式不正确的数值
<td><?php echo number_format($payslip->basic_pay + $payslip->allowances_cpf + $payslip->overtime_amount + $payslip->allowances) - ($payslip->deduction_cpf + $payslip->unpaid_deduction + $payslip->absent_deduction + $payslip->ns_pay + $payslip->cpf_employee + $payslip->deduction) ?>
</td>