nerdexam
Zend

200-530 · Question #3

You run the following PHP script: <?php if ( preg_match("/[^a-z589]+/", "AB asdfg589nmGH", $array) ) { print "<pre>\n"; print_r( $array ); print "</pre>\n"; } ?> What will be the output?

The correct answer is C. Array. See the full explanation below for the reasoning.

Question

You run the following PHP script: <?php if ( preg_match("/[^a-z589]+/", "AB asdfg589nmGH", $array) ) { print "<pre>\n"; print_r( $array ); print "</pre>\n"; } ?> What will be the output?

Options

  • AArray
  • BArray
  • CArray
  • DArray

How the community answered

(30 responses)
  • A
    7% (2)
  • B
    10% (3)
  • C
    80% (24)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice