nerdexam
Zend

200-530 · Question #542

Which of the following is a valid string function that is used to convert every newline into an HTML break?

The correct answer is C. nl2br(). See the full explanation below for the reasoning.

Question

Which of the following is a valid string function that is used to convert every newline into an HTML break?

Options

  • Aexplode()
  • Bwordwrap()
  • Cnl2br()
  • Dbr()

How the community answered

(26 responses)
  • A
    8% (2)
  • B
    8% (2)
  • C
    81% (21)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice