Powered By Blogger

Sunday, 31 July 2011

What is meant by nl2br()?

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

No comments:

Post a Comment