Is there an is_type () function in PHP? Http://docs.php.net/manual/zh/language.types.intro.php
If you just want to get an easy-to-understand expression of the type for debugging, use the gettype () function. To view a type, use the is_type function instead of gettype.
Problem:
1. is there an is_type () function in the PHP manual?
Reply to discussion (solution)
Is_array -- check whether the variable is an array
Is_bool -- check whether the variable is Boolean
Is_callable -- check whether the parameter is a valid callable structure
Is_double -- is_float () alias
Is_float -- check whether the variable is floating-point
Is_int -- check whether the variable is an integer
Is_integer -- alias of is_int ()
Is_long -- alias of is_int ()
Is_null -- check whether the variable is NULL
Is_numeric -- checks whether the variable is a numeric or numeric string
Is_object -- check whether the variable is an object
Is_real -- alias of is_float ()
Is_resource -- check whether the variable is of the resource type
Is_scalar -- checks whether the variable is a scalar.
Is_string -- check whether the variable is a string