A

Admin • 833K Points
Coach

Q. What is the output of the expression 5 + '10 little pigs'?

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

Explanation by: Admin

PHP converts the string starting from the numeric part to integer and adds.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.