← All docs

gmp_gcdext()

Extended greatest common divisor.

gmp_gcdext()

function gmp_gcdext(object|string|int $num1, object|string|int $num2): array

Extended greatest common divisor.

Parameters:

  • $num1 (object|string|int)
  • $num2 (object|string|int)

Returns: array

Availability

Compiled (AOT)Magician (eval)
AvailableAvailable

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how gmp_gcdext is implemented in the compiler, see the internals page.