miércoles, 18 de noviembre de 2020

Remove newlines using regex.

 //Replace the newline and carriage return characters

//using regex and preg_replace.

$text = preg_replace("/\r|\n/", "", $text);


remove \r\n