通过这些校验函数可以很容易的验证数据是否是执行的类型
/**
* PHP中数据类型校验函数
*
* @param
* @arrange 512-笔记网: www.www.jb51.cc
**/
is_array() – Test for Arrays
is_bool() – Test for Booleans (TRUE,FALSE)
is_float() – Test for Floating-point numbers
is_int() – Test for Integers
is_null() – Test for NULLs
is_numeric() – Test forNumeric values,even as a string (e.g.,‘ 20′ )
is_resource() – Test for Resources,like a database connection
is_scalar() – Test for Scalar (single-valued) variables
is_string() – Test for Strings
/*** 来自编程之家 jb51.cc(jb51.cc) ***/