Hi,
I found array_sum() in the manual but I'm having a hard time applying it. Maybe there is a different way I should be approaching this?
I want to get a total for all the values of $estimate[$t].
Is array_sum() what I would use and how would it be used?
Thanks,
Tim
I found array_sum() in the manual but I'm having a hard time applying it. Maybe there is a different way I should be approaching this?
I want to get a total for all the values of $estimate[$t].
PHP Code:
for($t=0; $t<= ($number - 1); $t++) {
$estimate[$t] = ($width[$t] + $length[$t]);
$temp = $t + 1;
echo "<BR>$estimate[$t] is estimate $temp<BR>";
}
Is array_sum() what I would use and how would it be used?
Thanks,
Tim
Comment