PHP function is_finite()

Availability in versions: PHP 4.2.0

Finds whether a value is a legal finite number

Parameters

Parameter Data type Default value Note
$val float not The value to check

Return values

bool

true if val is a legal finite number within the allowed range for a PHP float on this platform, else false.

Additional resources

Official is-finite documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.