Showing posts with label What is meant by nl2br()?. Show all posts
Showing posts with label What is meant by nl2br()?. Show all posts

Saturday, May 16, 2009

What is meant by nl2br()?

Anwser1:
nl2br() inserts a HTML tag <br> before all new line characters \n in a string.

echo nl2br("god bless \n you");

output:
god bless<br>
you