GMP_IMPORT(3) 1 GMP_IMPORT(3)
gmp_import - Import from a binary string
SYNOPSIS
GMP gmp_import (string $data, integer $word_size, integer $options)
DESCRIPTION
Import a GMP number from a binary string
PARAMETERS
o $data
- The binary string being imported
o $word_size
- Default value is 1. The number of bytes in each chunk of binary data. This is mainly used in conjunction with the options param-
eter.
o $options
- Default value is GMP_MSW_FIRST | GMP_NATIVE_ENDIAN.
RETURN VALUES
Returns a GMP number or FALSE on failure.
EXAMPLES
Example #1
gmp_import(3) example
<?php
$number = gmp_import("