PHP Multi String к одной строке
$str = preg_replace("/[\r\n]*/","",$str);
Different Duck
$str = preg_replace("/[\r\n]*/","",$str);