$text=ereg_replace('\n','',$text)
$text = preg_replace('/\r|\n/', '', $text)
$text=str_replace(array("\r","\n"),array('',''),$text);