Answers for "remove enter new line and space in variable php"

PHP
2

how remove \r\n from string in php

$text = preg_replace("/\r|\n/", "", $text);
Posted by: Guest on January-30-2021
5

php remove newline

//Replace the newline and carriage return characters
//using regex and preg_replace.
$text = preg_replace("/\r|\n/", "", $text);
Posted by: Guest on December-09-2020

Code answers related to "remove enter new line and space in variable php"

Browse Popular Code Answers by Language