πŸ“Š PHP
Q. What will be the output of the following PHP code ?
Code:
<?php
define('ATTENTION_TEXT', 'MCQ Buddy is good website.', true);
echo ATTENTION_TEXt;
$changing_var = 'text';
echo constant('ATTENTION_' . strtoupper($changing_var));
?>
  • (A) Nothing
  • (B) MCQ Buddy is good website.
  • (C) MCQ Buddy is good website.MCQ Buddy is good website.
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (C) MCQ Buddy is good website.MCQ Buddy is good website.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
129051
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ravinder Singh
Publisher
πŸ“ˆ
97%
Success Rate