Inserts HTML line breaks before all newlines in a string
string.
string nl2br ( string $string )
<?php
echo nl2br("foo isn't\n bar");
?>
The above example will output:
foo isn't<br />
bar
This is a discussion on PHP Questions within the Web Hosting forums, part of the Business category; What is meant by nl2br()?...
What is meant by nl2br()?
Inserts HTML line breaks before all newlines in a string
string.
string nl2br ( string $string )
<?php
echo nl2br("foo isn't\n bar");
?>
The above example will output:
foo isn't<br />
bar
Bookmarks