The gettype() function returns the type of a variable as a string (e.g., 'integer', 'string', 'array'). The is_*() family of functions like is_double(), is_int(), is_string() check if a variable is of a specific type, returning boolean true/false. Note that is_double() is an alias for is_float() - both check for floating-point numbers.