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

Code:
<?php
$color = red;
echo "$color";
?>
  • (A) red
  • (B) $color
  • (C) red
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) $color

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
291415
Total Visits
πŸ“½οΈ
5 y ago
Published
πŸŽ–οΈ
Yogesh
Publisher
πŸ“ˆ
88%
Success Rate