Jak usunąć \ r \ n z ciągów w php
$text = preg_replace("/\r|\n/", "", $text);
Mohamad
$text = preg_replace("/\r|\n/", "", $text);
preg_replace( "/\r|\n/", "", $yourString );
$str = preg_replace('/(\v|\s)+/', ' ', $str);