title: PHP algorithm for finding x in (x+1) mod 10 = 0
body: <p>Suppose I have the following series:</p>
  
  <pre><code>(x+1) mod 10 =0, (x+2) mod 10 = 0, (x+3) mod 10 = 0, .........,(x+11) mod 10 =0, (x+12) mod 10 = 0,........
  </code></pre>
  
  <p>I need a way to find the x. x+any number should be a number like 10, 20, 30, 40, 50....
  For any help thanks.</p>