A

Admin • 802.91K Points
Coach

Q. What is the result of casting 'hello' to an integer in PHP?

  • (A) 0
  • (B) 1
  • (C) Error
  • (D) Undefined
  • Correct Answer - Option(A)
  • Views: 3
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin
Non-numeric strings cast to integer result in 0.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.