title: PHP Loop do action for each 10, 20, 30 etc
body: <p>In php i have loop e.g. </p>
  
  <pre><code>for ($i = 0; $i &lt;= 1000; $i++) {
     if ($i = 10 || $i == 20 || $i == 30 || $i == 40 || $i == 50 || $i == 60) {
        echo $i;
     }
  }
  </code></pre>
  
  <p>imagine i need to echo $i every <code>10,20,30,40,50,60,..970,980,990</code> there should be way to not write 100 conditions in <code>if</code> statement. Is there some logical way to see if <code>$i</code> increased by 10 then do something like:</p>
  
  <pre><code>if ($i == $i+10) {
     ...
  }
  </code></pre>
  
  <p>P.S. if possible i dont want to introduce another variable to count i need to find solution with using only <code>$i</code></p>