is_infinite - chung-leong/qb GitHub Wiki

is_infinite - Whether a value is infinite

bool is_infinite( float $x )

is_infinite() returns true if x is infinite and false otherwise.

Parameters:

x - The number to process. It can be a scalar or an array.

Return Value:

true* or false depending on whether x is infinite. If x is an array, the return value will also be an array.

Notes

is_infinite() does not return -1 when x is -INF.

Version

1.0 and above.