) before all new line characters : nl2br « Utility Function « PHP
string nl2br ( string str ) inserts a HTML line break (
) before all new line characters : nl2br « Utility Function « PHP
- PHP
- Utility Function
- nl2br
string nl2br ( string str ) inserts a HTML line break (
) before all new line characters
<?
$mystr = "This is a test\nYes it is.";
$brstr = nl2br($mystr);
?>
Related examples in the same category