Zend
200-530 · Question #423
What will be the output of the following code snippet? <?php $string = '133445abcdef'; $mask = '12345'; echo strspn ($string, $mask); ?>
The correct answer is D. 6. See the full explanation below for the reasoning.
Question
What will be the output of the following code snippet? <?php $string = '133445abcdef'; $mask = '12345'; echo strspn ($string, $mask); ?>
Options
- Aabcdef
- B12345
- C123445
- D6
How the community answered
(25 responses)- A12% (3)
- B8% (2)
- C4% (1)
- D76% (19)
Community Discussion
No community discussion yet for this question.