addslashes()
for Escaping Quotes in a Stringaddslashes()
for Escaping Quotes in a StringThe addslashes()
function adds backslashes before quotes and other special characters in a string. This is useful for preparing strings for database queries or other contexts where special characters need to be escaped.