Mega Code Archive

 
Categories / Php / Functions
 

Nl2br() function converts all newline (n) characters to their HTML equivalent br

Its syntax is: string nl2br (string string) <?     $text_recipe = "     A     B     V";     $html_recipe = nl2br ($text_recipe);     print $html_recipe; ?>