Menu Home

is_infinite

osbo.com | PHP | Functions | is_infinite

Finds whether a value is infinite

Also finds any value too big to fit into a float.

Syntax

is_infinite ( float $val ) : bool

Parameters

val

The value to check

Return

TRUE if val is infinite, else FALSE.

Examples

1

PHP