What is nl2br in PHP

by Naveenkumar 2012-07-18 17:13:25



Hi,


nl2br() inserts a HTML tag "br" before all new line characters \n in a string.

for example,

echo nl2br(“god bless \n you”);

output:

god bless


you...


Tagged in:

891
like
0
dislike
0
mail
flag

You must LOGIN to add comments