Does PHP have a is_type () function?
http://docs.php.net/manual/zh/language.types.intro.php
Use the GetType () function if you just want a readable type of expression for debugging purposes. To view a type, do not use GetType () and use the Is_type function.
Problem:
1.PHP Manual, do you have Is_type () function?
Share to:
------Solution--------------------
Is_array--detects if a variable is an array
Is_bool--Whether the detection variable is a Boolean type
Is_callable--Detect if the parameter is a legitimate callable structure
Is_double--alias of Is_float ()
Is_float--Whether the detection variable is floating point type
Is_int--detects if the variable is an integer
Is_integer--alias of Is_int ()
Is_long--alias of Is_int ()
Is_null--detects if the variable is null
Is_numeric--detects if a variable is a numeric or numeric string
Is_object--detects if a variable is an object
Is_real--alias of Is_float ()
Is_resource--detects if a variable is a resource type
Is_scalar--detects if a variable is a scalar
Is_string--detects if a variable is a string