Home Menu

is_nan

Finds whether a value is not a number

Syntax

is_nan ( float $val ) : bool

Parameters

val

The value to check

Return

Returns TRUE if val is 'not a number', else FALSE.

Examples

<?

$val = sqrt(-1);

$return = is_nan($val);

echo $return;

?>
1

PHP

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms