Check whether a value is infinite or not:
The is_infinite() function checks whether a value is infinite or not.
This function returns true (1) if the specified value is an infinite number, otherwise it returns false/nothing.
The value is infinite if it is outside the allowed range for a PHP float on this platform.
Parameter | Description |
---|---|
value | Required. Specifies the value to check |
Return Value: | TRUE if value is an infinite number, FALSE otherwise |
---|---|
Return Type: | Boolean |
PHP Version: | 4.2+ |