0

ok so i am taking a list of numbers and stashing them i an array by going $total[]. then i try to use array_sum($total) and i dont get the last added number instead i get numbers that keep adding up to the final number

EX:

10,15,5

output: 102530

i have even just used $total += and i just get the same result. could some one help me with trying to just get the last total number.

thanks in advanced