The is_finite() function is use to check the passed value of this function is finite or not.
PHP is_finite() Function Example:
The is_finite() function is use to check the passed value of this function is finite or not. If the passed value is finite then is_finite() function true otherwise nothing return by this function.
Syntax:
is_finite(x)
where x is required parameter for check.
Example:
<?php echo $return = is_finite(50) . "<br />"; echo $return = is_finite(-50). "<br />"; echo $return = is_finite(log(0)). "<br />"; echo $return = is_finite(-0.50); ?>
Output:
1 1 1
[ 0 ] Comments