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
gmp_div_q(3) - php
gmp_gcdext(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:
Rules for Homework &amp; Coursework Questions Forum
Forum Video Tutorial: How to Use Code Tags
Please Welcome Don Cragun as Lead Moderator
Please Welcome Ravinder Singh to the Moderation Team