string nl2br ( string string ): changes any new line characters found in the data string into
. : nl2br « Utility Function « PHP
- PHP
- Utility Function
- nl2br
string nl2br ( string string ): changes any new line characters found in the data string into
.
<?php
$astring = "Hello\nWorld\n\nHow are you?";
echo nl2br ($astring);
?>
Related examples in the same category