nerdexam
National_Instruments

200-500 · Question #228

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

(46 responses)
  • A
    2% (1)
  • B
    7% (3)
  • C
    80% (37)
  • D
    11% (5)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice