πŸ“Š PHP
Q. What will be the output of the following PHP code ?
Code:
<?php
$color1 = "red";
$color2 = "1";
$color3 = "grey"
echo "$color1" + "$color2" . "$color3";
?>
  • (A) 1grey
  • (B) grey
  • (C) 0
  • (D) red1grey
πŸ’¬ Discuss
βœ… Correct Answer: (A) 1grey

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
200
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Neha Sharma
Publisher
πŸ“ˆ
81%
Success Rate