Zend
200-550 · Question #180
You need to escape special characters to use user input inside a regular expression. Which functions would you use? (Choose 2)
The correct answer is C. preg_quote() E. quote_meta(). See the full explanation below for the reasoning.
Question
You need to escape special characters to use user input inside a regular expression. Which functions would you use? (Choose 2)
Options
- Aaddslashes()
- Bhtmlentities()
- Cpreg_quote()
- Dregex_quote()
- Equote_meta()
How the community answered
(26 responses)- A4% (1)
- B4% (1)
- C81% (21)
- D12% (3)
Community Discussion
No community discussion yet for this question.