E
x
c
e
l
P
T
P

What is meant by nl2br()?

March 4, 2014

Inserts HTML line breaks (<BR />) before all newlines in a string string nl2br (string); Returns string with ” inserted before all newlines. For example: echo nl2br(“god bless\n you”) will output “god bless <br /> you” to your browser.