|
gmp_exportExport to a binary string Description
string gmp_export(GMPintstring
$num, int $word_size = 1, int $flags = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN)Exports a GMP number to a binary string. This function can handle arbitrarily large numbers beyond the range of PHP's native integer type, with configurable word size and byte order, similar in spirit to pack. The sign of the number is ignored; exporting a negative number produces the same result as exporting its absolute value. Parameters
Return ValuesReturns a string containing the binary representation of the GMP number. The string is empty if the number is zero. Changelog
Examples
Example #1 gmp_export example The above example will output: AA See Also
|