gmp_init
symfony/var-dumper
Supported Versions: PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
Create GMP number
gmp_init
(
int
|
string $num
,
int $base
=
0
):
GMP
public function
testCastGmp
()
{
$gmpString
=
gmp_init
(
'1234'
);
$gmpOctal
=
gmp_init
(
010
);
$gmp
=
gmp_init
(
'01101'
);
$gmpDump
= <<<
EODUMP
Tests/Caster/GmpCasterTest.php
public function
testCastGmp
()
{
$gmpString
=
gmp_init
(
'1234'
);
$gmpOctal
=
gmp_init
(
010
);
$gmp
=
gmp_init
(
'01101'
);
$gmpDump
= <<<EODUMP
array:1 [
Tests/Caster/GmpCasterTest.php
{
$gmpString
=
gmp_init
(
'1234'
);
$gmpOctal
=
gmp_init
(
010
);
$gmp
=
gmp_init
(
'01101'
);
$gmpDump
= <<<EODUMP
array:1 [
"\\x00~\\x00value" => %s
Tests/Caster/GmpCasterTest.php