Q. What will be the output?

Code:
$x = 5;
$x += 3;
echo $x;
  • (A) 5
  • (B) 8
  • (C) 15
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) 8
Explanation: $x becomes 8 after addition assignment.
Explanation by: Roshan
$x becomes 8 after addition assignment.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
11
Total Visits
πŸ“½οΈ
2 mo ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
95%
Success Rate