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);
?>  
  1. Error
  2. NULL undefined
  3. NULL object
  4. NULL NULL

Answer: D) NULL NULL

Explanation:

Both of the values "NULL" and "null" are NULL. Thus, the output will be "NULL NULL".

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.