array array_sum get error message |
As there are no decimals to be added, it removes it.
If you wan't to display them with decimals, you need to use number_format. http://php.net/manual/en/function.number-format.php PHP Code: echo number_format($sum, 2); |
Messages In This Thread |
array array_sum get error message - by DELE - 02-16-2019, 12:01 PM
RE: array array_sum get error message - by jreklund - 02-16-2019, 12:46 PM
RE: array array_sum get error message - by DELE - 02-16-2019, 07:54 PM
RE: array array_sum get error message - by jreklund - 02-17-2019, 01:54 AM
RE: array array_sum get error message - by DELE - 02-17-2019, 04:25 AM
RE: array array_sum get error message - by jreklund - 02-17-2019, 09:52 AM
|