I got above the following string:
"EN ABRIL SE INCREMENTAN LOS PRECIOS DE VENTA POR EL AUMENTO EN LOS INSUMOS DE IMORTACION.
SE ESPERA QUE DISMINUYAN PARA INCREMENTAR LA DEMANDA."
this String it's going to be saved into a CSV file and every enter chars inserts the next sentence line in other line... I would like to have all together.
I have already replace the strings the \r ,\t and \n characters and it's still doesn't work. Is there any other speacial character for enter? As far as I know it was \r\n.
Code: Select all
$observacion = str_replace('\n', '', mysql_result($result, 0));
$observacion = str_replace('\r', '', $observacion);
$observacion = str_replace('\t', '', $observacion);
$observacion = str_replace(',', ';', $observacion);
$observacion = str_replace('\r\n', '', $observacion); Thank you in advance,
cheers.