is_finite

(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)

is_finite判断是否为有限值

说明

is_finite(float $num): bool

检查 num 是否是是本机平台上浮点数所允许范围中的一个合法的有限值。

参数

num

要检查的值

返回值

如果 num 是本机平台上 PHP 浮点数所允许范围中的一个合法的有限值,则返回 true

参见

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top