Answers for "how to replace /n with <br> in a string in php"

PHP
2

php replace \n by <br>

$var = str_replace(array("\r\n","\n"),'<br>', $var);
Posted by: Guest on November-01-2020

Browse Popular Code Answers by Language