Calculate LCM « gmp_kronecker gmp_legendre » PHP Manual GMP 函式 Calculate LCM gmp_lcm (PHP 7 >= 7.3.0, PHP 8)gmp_lcm — Calculate LCM 說明 gmp_lcm(GMP|int|string $num1, GMP|int|string $num2): GMP This function computes the least common multiple (lcm) of num1 and num2. 參數 num1 GMP 對像或 int ,或數字string。 num2 GMP 對像或 int ,或數字string。 返回值 GMP 對象。 參見 gmp_gcd() - Calculate GCD