A

Admin • 833.24K Points
Coach

Q. What will be the output of var_dump(0 == '0')?

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

Explanation by: Admin

0 == '0' returns true because PHP performs type juggling.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.