title: Look for the GCD (greatest common divisor) of more than 2 integers?
body: <p>I already have a function that finds the GCD of 2 numbers.</p>
  
  <pre><code>function getGCDBetween($a, $b)
  {
      while ($b != 0)
      {
          $m = $a % $b;
          $a = $b;
          $b = $m;
      }
      return $a;
  }
  </code></pre>
  
  <p>But now, I would like to extend this function to find the GCD of N points. Any suggestion ?</p>