php中得知数据类型的函数
PHP共提供了六个函数(它们分别是boolean is_int(mixed variable)、boolean is_float(mixed variable)、 boolean is_bool(mixed variable)、 boolean is_string(mixed variable)、 boolean is_array(mixed variable)、 boolean is_object(mixed variable))来查看是否是对应的类型
如果你只是想知道的话可以
var_dump($var);输出看下 //这个函数可以查看其它函数的反回值是True还是False,并输出到页面。。。

浙公网安备 33010602011771号