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