is_nan
Description
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
is_nan(float $num): bool
The value to check
Returns true if num is 'not a number', else false.
<? $num = sqrt(-1); $return = is_nan($num); var_export($return); ?>
true