src/Math.php
public static function lcm($a, $b)
    {
        return (abs($a * $b) / self::gcd($a, $b));
    }
public static function lcm($a, $b)
    {
        return (abs($a * $b) / self::gcd($a, $b));
    }
public static function lcm ( $ a , $ b ) { return ( abs ( $ a * $ b ) / self :: gcd ( $ a , $ b ) ) ; }
Computes the least common multiple.

It uses reduction by the greatest common divisor.

@param int $a
@param int $b

@return int the least common multiple
Computes the least common multiple .