php, how to calculate the sum from an while loop?
<p>i have a while loop that returns some values:</p>

<pre><code>while ($get_keywords3 = mysql_fetch_array($keywords2)){ 
?&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style="margin: 0 3px;"&gt;&lt;?php echo $get_keywords3['grand_total'];?&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;?php } 
</code></pre>

<p>this returns back:</p>

<pre><code>123
234
345
456
...
</code></pre>

<p>what i want is to add those together: <code>123 + 234 + 345 + ...</code></p>

<p>any ideas?</p>

<p>thanks</p>
