Q. What is the output of intval('42abc')? (A) 42 (B) 0 (C) Error (D) 42abc ποΈ Show Answer π¬ Discuss π Share β‘Menu β Correct Answer: (A) 42 Explanation: intval() converts the string to an integer until non-digit is found.