(PHP 7 >= 7.3.0, PHP 8)
gmp_perfect_power — Perfect power check
$num
Checks whether num is a perfect power.
num
GMP 對象或 int ,或數(shù)字string。
Returns true if num is a perfect power, false otherwise.
true
false