is_finite

Finds whether a value is a legal finite number

Syntax

is_finite ( float $val ) : bool

Parameters

val

The value to check

Return

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

Examples

<?

$val = 0;

$return = is_finite($val);

echo $return;

?>
1

abs

acos

acosh

asin

asinh

atan

atan2

atanh

base_convert

bindec

ceil

cos

cosh

decbin

dechex

decoct

deg2rad

exp

expm1

fdiv

floor

fmod

hexdec

hypot

intdiv

is_infinite

is_nan

log

log10

log1p

max

min

octdec

pi

pow

rad2deg

round

sin

sinh

sqrt

tan

tanh

PHP

Home Menu