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

<?

$val = log(0);

$return = is_infinite($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_finite

is_nan

log

log10

log1p

max

min

octdec

pi

pow

rad2deg

round

sin

sinh

sqrt

tan

tanh

PHP

Home Menu