Multiple choice php

Which of the following functions are used by PHP to find out what type a variable is?

  1. gettype()

  2. is_double()

  3. get_type()

  4. is_date()

  5. A&B

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

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.