PHP is_finite() Function

The is_finite() function checks whether a value is finite or not.

This function returns true (1) if the specified value is a finite number, otherwise it returns false/nothing.

The value is finite if it is within the allowed range for a PHP float on this platform.

bool is_finite ( float $val )

Checks whether val is a legal finite on this platform.

Example -

ParameterDescription
valThe value to check

Return Values

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