You can find the greatest common divisor (GCD) of two numbers in PHP using the Euclidean algorithm. Here's a function that does that:
main.php124 chars9 lines
Here's how it works:
You can use this function like this:
main.php94 chars4 lines
gistlibby LogSnag