Answers for "php replace line break"

PHP
2

php replace \n by <br>

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

string remove line breaks php

preg_replace( "/\r|\n/", "", $yourString );
Posted by: Guest on May-18-2020

Browse Popular Code Answers by Language