![]() |
The gmp_perfect_power() function is an inbuilt function in PHP that is used to check the perfect power of the number. Syntax: gmp_perfect_power(GMP|int|string $num): bool
Parameters: This function accepts only one parameter which is described below.
Return Value: The gmp_perfect_power() function returns the true of the perfect power existing of the number otherwise this function will return false. Program 1: The following program demonstrates the gmp_perfect_power() function. PHP
Output: This is perfect square number
Program 2: The following program demonstrates the gmp_perfect_power() function. PHP
Output: This is perfect square number 1. Reference: https://www.php.net/manual/en/function.gmp-perfect-power.php |
Reffered: https://www.geeksforgeeks.org
PHP |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 12 |