PHP: is_infinite() function
Description
The is_infinite() function is used to find whether a value is infinite or not.
Version:
(PHP 4 and above)
Syntax:
is_infinite(num)
Parameter:
Name | Description | Required / Optional |
Type |
---|---|---|---|
num | The value to be checked. | Required | Float |
Return value:
TRUE if num is infinite number otherwise FALSE.
Value Type: Boolean
Pictorial Presentation
Example:
<?php
$fval1=10.21;
$fval2=-255550.85;
echo is_infinite($fval1);
echo"<br />";
echo is_infinite($fval2);
?>
Output:
1
View the example in the browser
See also
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics