nerdexam
Zend

200-530 · Question #12

Consider a string in the following format: Zend 200-530 Exam abcd/a.d You want to perform regular expression in this string; however, you are unable to do this since the string contains special…

The correct answer is A. preg_quote(). See the full explanation below for the reasoning.

Question

Consider a string in the following format: Zend 200-530 Exam a*bcd/a.d You want to perform regular expression in this string; however, you are unable to do this since the string contains special characters. You can make this string PCRE compatible if you convert this string in the following format: a*bcd/a.d Which of the following functions will you use to accomplish the task into a single call?

Options

  • Apreg_quote()
  • Bpreg_match()
  • Cexpload()
  • Dpreg_split()

How the community answered

(54 responses)
  • A
    76% (41)
  • B
    13% (7)
  • C
    7% (4)
  • D
    4% (2)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice