nerdexam
National_Instruments

200-500 · Question #109

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

(24 responses)
  • A
    75% (18)
  • B
    13% (3)
  • C
    4% (1)
  • D
    8% (2)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice