php man page for gmp_import

Query: gmp_import

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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_init(3) - php
gmp_setbit(3) - php
gmp_strval(3) - php
Similar Topics in the Unix Linux Community
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation
Denial Of Service Attack Update
Please Welcome Nicki Paul to the Moderator Team!