← All docs

gmp_and()

Bitwise AND of two GMP numbers.

gmp_and()

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

Bitwise AND of two GMP numbers.

Parameters:

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

Returns: object

Availability

Compiled (AOT)Magician (eval)
AvailableAvailable

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

Internals

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