- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
gmp_perfect_square() function in PHP
The gmp_perfect_square() function checks if the GMP number is a perfect square or not.
Syntax
gmp_perfect_square(val)
Parameters
val − The GMP number to be checked. It can be GMP object in PHP version 5.6 and later. Can also be numeric strings.
Return
The gmp_perfect_square() function returns TRUE if val is a perfect square.
Example
The following is an example −
<?php $val = "36"; var_dump(gmp_perfect_square($val))."n"; ?>
Output
The following is the output −
bool(true)
Advertisements