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)- A9% (2)
- B4% (1)
- C83% (19)
- D4% (1)
Community Discussion
No community discussion yet for this question.