nerdexam
Zend

200-530 · Question #541

Which of the following functions can be used to match a string against a whitelist mask of allowed characters?

The correct answer is C. strspn(). See the full explanation below for the reasoning.

Question

Which of the following functions can be used to match a string against a whitelist mask of allowed characters?

Options

  • Astr_match()
  • Bsubstr_replace()
  • Cstrspn()
  • Dstrtr()

How the community answered

(23 responses)
  • A
    9% (2)
  • B
    4% (1)
  • C
    83% (19)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice