PHP is_nan() 函数
PHP 教程
· 2019-01-26 23:43:55
实例
判断一个值是否为非数值:
<?php
echo is_nan(200) . "<br>";
echo is_nan(acos(1.01));
?>
echo is_nan(200) . "<br>";
echo is_nan(acos(1.01));
?>
定义和用法
is_nan() 函数判断一个值是否为非数值。
如果指定的值是非数值,该函数返回 true (1)。否则,它将返回 false/nothing。
语法
is_nan(value);
| 参数 | 描述 |
|---|---|
| value | 必需。规定要检查的值。 |
技术细节
| 返回值: | 如果 value 是非数值,则返回 TRUE。否则,返回 FALSE。 |
|---|---|
| 返回类型: | Boolean |
| PHP 版本: | 4.2+ |
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
Out of Control
Kevin Kelly / Basic Books / 1995-4-14 / USD 22.95
Out of Control is a summary of what we know about self-sustaining systems, both living ones such as a tropical wetland, or an artificial one, such as a computer simulation of our planet. The last chap......一起来看看 《Out of Control》 这本书的介绍吧!