A

Admin • 828.03K Points
Coach

Q. What will be the output of the following PHP code ?

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;
?>
  • (A) I have a value
  • (B) I have a valueI have a value
  • (C) I have a valueNEW_GOO_NAME_CONSTANTS
  • (D) ERROR
  • Correct Answer - Option(B)
  • Views: 8
  • Filed under category PHP
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.