<?php$string = ''; // Reemplazas la variable por tu string$string = str_replace("\n"," ", $string);?>