nl2br() function takes a string in its parameter. It finds \n in given string and then it breaks line whereas it finds \n in that string. See example-
<?php
$text = "HTML stands for \n Hyper Text Markup Language";
$text = nl2br($text);
echo $text;
?>
Publish A Comment