gmp_import(3) php man page | unix.com

Man Page: gmp_import

Operating Environment: php

Section: 3

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(""); echo gmp_strval($number) . " "; $number = gmp_import("12"); echo gmp_strval($number) . " "; ?> The above example will output: 0 528 PHP Documentation Group GMP_IMPORT(3)
Related Man Pages
hex2bin(3) - php
gmp_div_qr(3) - php
gmp_gcdext(3) - php
gmp_init(3) - php
xdiff_file_bpatch(3) - php
Similar Topics in the Unix Linux Community
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun