Perfect power check

gmp_perfect_power

(PHP 7 >= 7.3.0, PHP 8)

gmp_perfect_powerPerfect power check

說明

gmp_perfect_power(GMP|int|string $num): bool

Checks whether num is a perfect power.

參數

num

GMP 對像或 int ,或數字string

返回值

Returns true if num is a perfect power, false otherwise.

參見

Leave a Reply

Your email address will not be published. Required fields are marked *