Answers for "remove character \n \r php"

PHP
2

how remove rn from string in php

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

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
0

php remove t and n

$str = preg_replace('/(v|s)+/', ' ', $str);
Posted by: Guest on June-23-2021

Browse Popular Code Answers by Language