Answers for "clean string from \r\n in php"

PHP
2

how remove \r\n from string in php

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

php remove \t and \n

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

Browse Popular Code Answers by Language