Welcome Guest, Not a member yet? Register   Sign In
array array_sum get error message
#4

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($sum2); 
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB