Q. Which PHP function converts a string to an integer safely?
β
Correct Answer: (A)
intval()
Explanation: intval() converts a variable to integer.