A

Admin • 828.03K Points
Coach

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

  • (A) 2
  • (B) true
  • (C) false
  • (D) 1
  • Correct Answer - Option(A)
  • Views: 5
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin
In PHP, true is converted to 1 in arithmetic operations, so 1 + 1 = 2.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.