preg_replace("/\n|\r/", "", $string);
str_replace("\n", "", $string); str_replace("\r", "", $string);