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

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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