Q:

What will be the output of the following PHP code ?

belongs to collection: CONSTANTS AND OPERATORS IN PHP MCQ

0

What will be the output of the following PHP code ?

<?php
define("NEW_GOOD_NAME_CONSTANT", "I have a value");
define("OLD_BAD_NAME_CONSTANT", NEW_GOOD_NAME_CONSTANT);
 
echo NEW_GOOD_NAME_CONSTANT;
echo OLD_BAD_NAME_CONSTANT; 
?>

  1. I have a value
  2. I have a valueI have a value
  3. ERROR
  4. I have a valueNEW_GOO_NAME_CONSTANTS

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

(b).I have a valueI have a value

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

CONSTANTS AND OPERATORS IN PHP MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What will be the output of the following PHP code ... >>
<< What will be the output of the following PHP code ...