A

Admin • 833.24K Points
Coach

Q. What is the output of 5 == '5' in PHP?

  • (A) true
  • (B) false
  • (C) error
  • (D) null
  • Correct Answer - Option(A)
  • Views: 18
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

The == operator checks for equality without considering data type, so 5 equals '5'.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.