M

Mr. Dubey • 100.28K Points
Coach

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

  • (A) 15
  • (B) 105
  • (C) Error
  • (D) '105'
  • Correct Answer - Option(A)
  • Views: 24
  • Filed under category PHP

Explanation by: Mr. Dubey
PHP automatically converts the string '5' to an integer before addition.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics