I've got a simple problem that I'm not quite sure how to get around using a loop to grab php variables and add them together
Let's say I've got this loop
$total = 0;
while ( $foo ='bar' );
$amount = meta($row, 'amount');
endwhile;
$total = 'NEW AMOUNT';
my question is, how do I add amounts (anywhere from 1 to 200) together to create the bottom $total? the amount of objects from while ( $foo ='bar'); is ever growing and can be 2 total objects, or 2000.