PHP 中的 is_nan() 函数
phpprogrammingserver side programming
is_nan() 函数用于检查"非数字"值。如果 num 为"非数字",则返回 TRUE,否则返回 FALSE。
语法
is_nan(num)
参数
num 减去要检查的值
返回
如果 num 为"非数字",则 is_nan() 函数返回 TRUE,否则返回 FALSE。
示例
<?php echo is_nan(10) ?>
让我们看另一个例子 −
示例
<?php echo is_nan(acos(1)); ?>