Home > PHP > Function > Math > is_infinite()

is_infinite()

is_infinite - Finds whether a value is infinite

Syntax

bool is_infinite (float $val)

Arguments

  • val - The value to check

Description

Returns TRUE if val is infinite (positive or negative), like the result of log(0)or any value too big to fit into a float on this platform.

Version

PHP 4.2.0, 5

Return value

TRUE if val is infinite, else FALSE.