πŸ“Š PHP
Q. What will be the output?
Code:
echo '1' + true;
  • (A) 2
  • (B) 11
  • (C) 1
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (A) 2

Explanation: true is converted to 1 → 1 + 1 = 2.

Explanation by: Roshan
true is converted to 1 → 1 + 1 = 2.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
3
Total Visits
πŸ“½οΈ
8 d ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
96%
Success Rate