Multiple choice general knowledge math & puzzles

Which of the following function is used by PHP to find out what type of variable?

  1. getdouble()

  2. is_date()

  3. get_type()

  4. is_double()

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

In PHP, is_double() (which is an alias of is_float()) is used to check if a variable is of type float/double. While gettype() (not get_type) returns the type string, is_double() specifically finds out if it is that type.