PHP is_finite() - Math Functions

What is is_finite Function?

Explanation

The "is_finite()" function finds whether a value is a legal finite number.

Syntax:


is_finite(x)

In the above syntax "x" is the number to be checked to find whether its a legal finite number.

Example :


<?php
echo is_finite(4);
echo is_finite(4000);
?>
Result :

1
1

In the above example both the numbers are finite numbers, so it returns "true", otherwise it returns nothing.

PHP Topics


Ask Questions

Ask Question