You need to escape special characters to use user input inside a regular expressionwhich.

A. Addslashes()
B. Htmlentities()
C. Preg_quote()
D. Regex_quote()
View Answer

C. Preg_quote()

Leave a Comment