Q. Which of the following functions can be used to escape special characters in a string for use in an SQL statement?
β
Correct Answer: (A)
mysqli_real_escape_string()
Explanation: mysqli_real_escape_string() is used to safely escape special characters in SQL queries.