Home »
MCQs »
PHP MCQs
What will be the output of the following PHP code (8)?
39. What will be the output of the following PHP code?
<?php
$value1 = NULL;
$value2 = null;
var_dump($value1);
var_dump($value2);
?>
- Error
- NULL undefined
- NULL object
- NULL NULL
Answer: D) NULL NULL
Explanation:
Both of the values "NULL" and "null" are NULL. Thus, the output will be "NULL NULL".