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