Let's test your knowledge. Click the correct answer from the options.
In PHP, the gettype() function returns the data type of a variable. Given this information, what will be the output of this code?
TEXT/X-PHP
1<?php
2
3echo gettype("Welcome to AlgoDaily!!");
4
5echo gettype(["Welcome","To","AlgoDaily"]);
6
7echo gettype(1+2);
8
9?>
Click the option that best answers the question.
- Boolean Integer Array
- String Array Integer
- String Object Double