A

Admin • 833K Points
Coach

Q. Which function can be used to escape special characters in a string for use in SQL?

  • (A) mysqli_real_escape_string()
  • (B) escape_string()
  • (C) mysql_escape()
  • (D) addslashes()
  • Correct Answer - Option(A)
  • Views: 33
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

mysqli_real_escape_string() is used to escape special characters in a string for use in an SQL statement.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.