Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

is_nan

Description

The is_nan of Math for PHP 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

1

<?

$num = sqrt(-1);

$return = is_nan($num);

var_export($return);

?>
true
HomeMenu