Home »
MCQs »
PHP MCQs
What will be the output of the following PHP code (6)?
36. What will be the output of the following PHP code?
<?php
$x = true;
var_dump($x);
?>
- boolean('true')
- boolean(true)
- bool(true)
- bool('true')
Answer: C) bool(true)
Explanation:
The type of the true is bool. And, the var_dump() method returns the variable type along with the value. Thus, the output will be bool(true).