Home >Backend Development >PHP Tutorial >php数据类型判断函数有哪些_PHP

php数据类型判断函数有哪些_PHP

WBOY
WBOYOriginal
2016-06-01 11:59:021071browse
复制代码 代码如下:
is_bool()、is_float()、is_int()、is_string()、is_object()、is_array() 和 is_integer()。

注意当判断

is_numeric() 检测变量是否为数字或数字字符串 有别 is_integer()
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn