title: how to sum variable static values in while or for loop?
body: <p>is that possible to <code>sum variable static values</code> in the while or for loop? i have code and working on it but it <code>sum variables</code> only one time?</p>
  
  <p><strong>For Example I want Like This</strong></p>
  
  <p>i need to sum <code>b values</code> with every results?</p>
  
  <p><strong>Here My Code</strong></p>
  
  <pre><code>&lt;?php 
  $a='10';
  $b='20';
  $i=0;
  while($i &lt;=10)
  {
  $c=$c=$a+$b;
  $i++;
  ?&gt;
  &lt;input type="text" value="&lt;?php echo $c[$i] ?&gt;" /&gt;
  &lt;?php }?&gt;
  </code></pre>