A

Admin • 833K Points
Coach

Q. What is the output of: echo '5' + 10;

  • (A) 15
  • (B) 510
  • (C) 5 10
  • (D) Error
  • Correct Answer - Option(A)
  • Views: 26
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

PHP automatically converts the string '5' to number 5 and adds 10.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.