Functions to Check Data Type : Php Functions « Language Basics « PHP






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
  
  








Related examples in the same category

1.Functions to Convert Data Types
2.Functions to Test Data Types
3.GMP Functions
4.Using the @ operator to suppress a warning about the undefined variables