nerdexam
Zend

200-530 · Question #486

You run the following PHP script: <?php $x = 'john'; echo substr_replace ($x, 'jenny', 0, 0); ?>

The correct answer is E. jennyjohn. See the full explanation below for the reasoning.

Question

You run the following PHP script: <?php $x = 'john'; echo substr_replace ($x, 'jenny', 0, 0); ?>

Options

  • Ajenn
  • Bjohn
  • Cjenny
  • DThe script will throw an error message.
  • Ejennyjohn

How the community answered

(36 responses)
  • A
    3% (1)
  • B
    8% (3)
  • C
    3% (1)
  • D
    14% (5)
  • E
    72% (26)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice