GMP_EXPORT(3) 1 GMP_EXPORT(3)
gmp_export - Export to a binary string
SYNOPSIS
string gmp_export (GMP $gmpnumber, integer $word_size, integer $options)
DESCRIPTION
Export a GMP number to a binary string
PARAMETERS
o $gmpnumber
- The GMP number being exported
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 string or FALSE on failure.
EXAMPLES
Example #1
gmp_export(3) example
<?php
$number = gmp_init(6565);
echo gmp_export($number) . "
";
?>
The above example will output:
AA
PHP Documentation Group GMP_EXPORT(3)