Mega Code Archive

 
Categories / Php / Language Basics
 

Functions to Check Data Type

Name                  Description is_null()             Returns true if the value is null (no type) is_string()           Returns true if the value is a string is_int()              Returns true if the value is an integer is_float()            Returns true if the value is a floating-point value is_array()            Returns true if the value is an array is_object()           Returns true if the value is an object is_a()                Deprecated; checks if an object is a specified class instanceof()          Checks if an object is an instance of a class