PHP - Manual: gmp_perfect_power
2024-11-15
(PHP 7 >= 7.3.0, PHP 8)
gmp_perfect_power — Perfect power check
num
GMP 对象或 int ,或数字string。
Returns true
if num
is a perfect power, false
otherwise.
官方地址:https://www.php.net/manual/en/function.gmp-perfect-power.php