is_float — 检测变量是否是浮点型
http://cn.php.net/manual/zh/function.is-float.php
is_int — 检测变量是否是整数
http://cn.php.net/manual/zh/function.is-int.php