Which functions would you use?

Posted by: Pdfprep Category: 200-710 Tags: , ,

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

Which functions would you use? (Choose 2)
A . addslashes()
B . htmlentities()
C . preg_quote()
D . regex_quote()
E . quotemeta()

Answer: C, E

Leave a Reply

Your email address will not be published.