php odstranit newline
//Replace the newline and carriage return characters
//using regex and preg_replace.
$text = preg_replace("/\r|\n/", "", $text);
php odstranit \t a \n
$str = preg_replace('/(\v|\s)+/', ' ', $str);
jak odebrat \r\n ze řetězce v php
$text = preg_replace("/\r|\n/", "", $text);