string multi -php para uma única string

$str = preg_replace("/[\r\n]*/","",$str);
Different Duck