Discussion in 'PHP' started by pshaw, Apr 14, 2021.
PHP - I need to add "a1" to "a2" to "a3" then that total becomes "sum"
You mean like this: $sum = $a1 + $a2 + $a3; PHP:
$sum = $a1 + $a2 + $a3;
Separate names with a comma.