nerdexam
Zend

200-550 · Question #173

What will the following code piece print? echo strtr('Apples and bananas', 'ae', 'ea')

The correct answer is A. Applas end benenes. See the full explanation below for the reasoning.

Question

What will the following code piece print? echo strtr('Apples and bananas', 'ae', 'ea')

Options

  • AApplas end benenes
  • BEpplas end benenes
  • CApples and bananas
  • DApplas end bananas

How the community answered

(36 responses)
  • A
    81% (29)
  • B
    6% (2)
  • C
    11% (4)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 200-550 Practice