PHP - Type Handling
Which of the following is the correct syntax to get the type of a variable
$var using gettype() in PHP?$var using gettype() in PHP?gettype($var); is correct syntax.typeof is invalid because it is not a PHP function. gettype $var; misses parentheses, which is invalid syntax.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions