A

Admin • 832.27K Points
Coach

Q. What is the output of intval('42abc')?

  • (A) 42
  • (B) 0
  • (C) Error
  • (D) 42abc
  • Correct Answer - Option(A)
  • Views: 22
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

intval() converts the string to an integer until non-digit is found.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.