PHP is_finite() Function
Definition and Usage
The is_finite() function determines whether a value is finite.
Syntax
is_finite(x)
Parameter | Description |
---|---|
x | Required. Specifies the value to be checked. |
Description
If x Returns true if the value is a legal finite value within the range allowed by the PHP floating-point number on the local platform.
Example
<?php echo is_finite(2); echo is_finite(log(0)); echo is_finite(2000); ?>
Output:
1 1