PHP | gmp_export() function Last Updated : 02 Nov, 2020 Comments Improve Suggest changes Like Article Like Report The gmp_export() function is an inbuilt function in PHP which exports a GMP number(GNU Multiple Precision: For Large Numbers) to a binary string. Syntax: string gmp_export ( GMP $gmpnumber, int $word_size, int $options ) Parameters: The gmp_export() function accepts three parameters as shown above and described below: $gmpnumber: This is a required parameter of gmp_export() function, it is the number to be exported by the function.$word_size: This parameter contains the number of bytes in each chunk of binary data. This parameter is mainly used simultaneously with the options parameter. The default value of this parameter is 1.$options: This parameter has default value of GMP_MSW_FIRST | GMP_NATIVE_INDIAN. Return Value: The function returns a string on success and FALSE on failure. Below program illustrate the gmp_export() function in PHP: PHP <?php // PHP code implementing the gmp_export function // The gmp_init() function creates a gmp number // form a string or number $number = gmp_init(16705); echo gmp_export($number) . "\n"; ?> Output: AA Related Articles: PHP | gmp_add() for adding large numbersPHP | gmp_invert() for inverse moduloPHP | gmp_rootrem() Function Reference: http://php.net/manual/en/function.gmp-export.php Comment More infoAdvertise with us Next Article PHP | gmp_export() function P priya_1998 Follow Improve Article Tags : Web Technologies PHP PHP-function PHP-gmp Similar Reads PHP | gmp_com() Function The gmp_com() is an inbuilt function in PHP which is used to calculate the one's complement of a GMP number(GNU Multiple Precision : For large numbers). Syntax: gmp_com($num) Parameters: This function accepts a GMP number $num as a mandatory parameter as shown in the above syntax. This parameter can 2 min read PHP | gmp_cmp() Function The gmp_cmp() is an inbuilt function in PHP which is used to compare two GMP numbers(GNU Multiple Precision : For large numbers). Syntax: gmp_cmp($num1, $num2) Parameters: This function accepts two GMP numbers $num1 and $num2 as mandatory parameters as shown in the above syntax for comparing. These 2 min read PHP | gmp_clrbit() Function The gmp_clrbit() function is an in-built function in PHP which clears a bit of a GMP number (GNU Multiple Precision). The gmp_clrbit() function sets the bit at a specified index in a GMP number to 0. The index starts at zero from the least significant bit. Syntax : gmp_clrbit( $num, $index ) Paramet 2 min read PHP | var_export() Function The var_export() is a built-in function in PHP which is used to return the structured value(information) of a variable that is passed to this function as a parameter. This function is similar to the var_dump() function.Syntax: var_export($var, $return) Parameters: This function accepts two parameter 1 min read PHP | gmp_divexact() Function The gmp_divexact() is a built-in function in PHP which is used to check whether a GMP number(GNU Multiple Precision : For large numbers) is exactly divisible by another GMP number or not. If it so happens then function returns the exact result else any other irrelevant GMP number. Syntax: gmp_divexa 2 min read Like