gmp_perfect_power
PHP function
Edit on GitHub ✎
(PHP 7 >= 7.3.0, PHP 8)
Perfect power check
Description
gmp_perfect_power(GMP|int|string $num): bool
Checks whether num is a perfect power.
Parameters
numParameter
Return Values
Returns true if num is a perfect power, false otherwise.