A

Admin • 825.56K Points
Coach

Q. What will be the output?

Code:
echo '5' + 10;
  • (A) 15
  • (B) 510
  • (C) Error
  • (D) 5
  • Correct Answer - Option(A)
  • Views: 4
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin
PHP converts string '5' to integer 5 before addition.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.