nerdexam
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)
  • A
    12% (3)
  • B
    8% (2)
  • C
    4% (1)
  • D
    76% (19)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice