nerdexam
Zend

200-530 · Question #397

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? Zend…

The correct answer is B. 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? Zend 200-530 Exam

Options

  • AArray
  • BArray
  • CArray
  • DArray

How the community answered

(46 responses)
  • A
    4% (2)
  • B
    83% (38)
  • C
    11% (5)
  • D
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice