17500 is the sum i'm after unfortunately i'm getting 517.
This is hard to explain, i'll explain because its too much code to post here.
Here's what i'm trying to do.
I've actually got several different arrays that i'm tring to add the values of together.
each array has 12 values 1 for each month.
$array1[1] = 100
$array1[2] = 123 all the way through
$array1[12] =200.
$array2[1] = 738
$array2[12] = 6000
$array3[1] = 500
$array3[12] = 11000 etc...
I've got about 15 differetn arrays like this.
when i try to add a value from each array together like: $array1[12] + $array2[12] + $array3[12] I get 217 (200 + 6 + 11) not 17200 (200 + 6000 + 11000).
IF i echo each array echo "$array2[12]"; It will return the correct value (6000) and not (6) so i know the value within the array is correct. For some reason it is not adding anything greater that 1000, but instead droping all of the digits, which make it over a thousand.
I know its hard to point out the problem exatcly with out posting my actual code, but It is a very long piece of code. I'm hoping someone h as run into this problem before or can recognize something i might be doing wrong.