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

<?

$val = log(0);

$return = is_infinite($val);

echo $return;

?>
1
HomeMenu