- 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
is_finite() function in PHP
The is_finite() function checks if a value is finite or not. It Returns true if num is a finite number, else it Returns false.
Syntax
is_finite(num)
Parameters
num − The number to be checked.
Return
The is_finite() function Returns true if num is a finite number, else it Returns false.
Example
<?php echo is_finite(1); ?>
Output
1
Let us see another example −
Example
<?php echo is_finite(log(0)); ?>
Output
Advertisements