Q. What will be the output of the expression true + true in PHP?

  • (A) 2
  • (B) true
  • (C) false
  • (D) 1
πŸ’¬ Discuss
βœ… Correct Answer: (A) 2
Explanation: In PHP, true is converted to 1 in arithmetic operations, so 1 + 1 = 2.
Explanation by: Rati Dubey
In PHP, true is converted to 1 in arithmetic operations, so 1 + 1 = 2.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
113
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
86%
Success Rate