The following class can be used to find the greatest common factor for two or more numbers by using Euclid’s algorithm. It was created from original code at http://www.calculatorsoup.com/calculators/math/gcf.php.
The Code
View this code snippet on GitHub.Usage
View this code snippet on GitHub.The post PHP Class for Greatest Common Factor appeared first on Gary's Code.