Answers for "php replace all line breaks with br"

PHP
2

php replace \n by <br>

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

Code answers related to "php replace all line breaks with br"

Browse Popular Code Answers by Language