title: If number is not multiple of 6 find remainder in PHP
body: <p>Okay i will have a number from my database. This could be 3, 15 , 138 etc. Basically any number.</p>
  
  <p>Now if the number is not a multiple of 6 i want to find out how many more until it becomes a multiple of 6.</p>
  
  <p>So for instance if my number is 4, i want it to say you need 2 more to reach a multiple of 6.</p>
  
  <p>How can i achieve this? Also when giving an answer could you please explain how the formula works.</p>
  
  <p>I have tried this which someone suggested</p>
  
  <pre><code>                    $number = 4;
  
                      if($number % 6 != 0) {
                          echo $number += 6 - ($number % 6);
                      }
  </code></pre>
  
  <p>But this just prints 6 out </p>