public static function stripNewlines($string) { return str_replace(array("\r\n", "\n", "\r"), ' ', $string); }