跳到主要内容

is_number

判断是否为数字(包括整数和浮点数)

声明

bool is_number(mixed val)

参数

参数名描述
val待判断的值

返回值

true - 是数字, false - 不是数字

使用方式

返回文档