PHP Conference China 2020


(PHP 7 >= 7.3.0)

gmp_perfect_powerPerfect power check


gmp_perfect_power ( mixed $a ) : bool

Checks whether a is a perfect power.



Either a GMP number resource in PHP 5.5 and earlier, a GMP object in PHP 5.6 and later, or a numeric string provided that it is possible to convert the latter to a number.

Dönen Değerler

Returns TRUE if a is a perfect power, FALSE otherwise.

Ayrıca Bakınız

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top