The gmp_strval() function gives the string value of a GMP number.
Syntax
string gmp_strval ( GMP num, int base )
Parameters
num − This is the number for which we want the string value.
base − The base of the returned number.
Return
The gmp_strval() function returns the string value of a GMP number.
Example
The following is an example −
<?php echo gmp_strval("10", 2); ?>
Output
The following is the output −
101