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
stristr(3) - php
gmp_init(3) - php
gmp_prob_prime(3) - php
gmp_setbit(3) - php
xdiff_file_bpatch(3) - php
Similar Topics in the Unix Linux Community
Simple rules of the UNIX.COM forums:
UNIX.COM 2017 Year End Summary
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
Please Welcome Nicki Paul to the Moderator Team!