is_nan

Finds whether a value is not a number

Syntax

is_nan(float $num): bool

Parameters

num

The value to check

Return

Returns true if num is 'not a number', else false.

Examples

<?

$num = sqrt(-1);

$return = is_nan($num);

var_export($return);

?>
true

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_infinite

log

log10

log1p

max

min

octdec

pi

pow

rad2deg

round

sin

sinh

sqrt

tan

tanh

PHP

Home Menu