title: How to add more than 1 each time in a foreach/for loop?
body: <p>How do you add more than 1 each time in a foreach/for loop?</p>
  
  <p>I know the basic +1 is like this:</p>
  
  <pre><code>for ($i=1;$i&lt;$nc;$i++){
  
   echo $i;
  
  }
  </code></pre>
  
  <p>but I need to add another element which goes up by 5 each time also</p>
  
  <pre><code>    for ($i=1;$i&lt;$nc;$i++){
  
         // what ever maths to make $plus5 go up by 5 each time
  
         echo $i . ' - ' . $plus5;
  
  }
  </code></pre>
  
  <p>so the result would be:</p>
  
  <pre><code>1 - 5
  2 - 10
  3 - 15
  4 - 20
  </code></pre>