php replace \n by <br>
snippet in php

php replace \n by <br>

user5750

$var = str_replace(array("\r\n","\n"),'<br>', $var);