Functions to Test Data Types : Php Functions « Language Basics « PHP






Functions to Test Data Types

 
Function                   Description
 
is_array()                 Returns true if the argument is an array
 
is_bool()                  Returns true if the argument is boolean
 
is_double()                Returns true if the argument is a double
 
is_int()                   Returns true if the argument is an integer
 
is_object()                Returns true if the argument is an object
 
is_string()                Returns true if the argument is a string
 
is_null()                  Returns true if the argument is null
 
is_resource()              Returns true if the argument is a resource
  
  








Related examples in the same category

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