← All docs

gmp_import()

Imports a binary string as a GMP number.

gmp_import()

function gmp_import(string $data, int $word_size = 1, int $flags = 17): object

Imports a binary string as a GMP number.

Parameters:

  • $data (string)
  • $word_size (int), default 1, optional
  • $flags (int), default 17, optional

Returns: object

Availability

Compiled (AOT)Magician (eval)
AvailableAvailable

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

Internals

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