The is_finite() function checks whether a value is finite or not.
This function returns true (1) if the specified value is a finite number, otherwise it returns false/nothing.
The value is finite if it is within the allowed range for a PHP float on this platform.
bool is_finite ( float $val )
Checks whether val is a legal finite on this platform.
Parameter | Description |
---|---|
val | The value to check |
TRUE if val is a legal finite number within the allowed range for a PHP float on this platform, else FALSE.