A

Admin • 832.70K Points
Coach

Q. Which of the following functions can be used to escape special characters in a string for use in an SQL statement?

  • (A) mysqli_real_escape_string()
  • (B) addslashes()
  • (C) htmlspecialchars()
  • (D) urlencode()
  • Correct Answer - Option(A)
  • Views: 21
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

mysqli_real_escape_string() is used to safely escape special characters in SQL queries.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.