Ver Mensaje Individual
  #10 (permalink)  
Antiguo 11/12/2012, 11:35
Avatar de iviamontes
iviamontes
 
Fecha de Ingreso: enero-2011
Ubicación: $cubano->Arg->Mendoza
Mensajes: 1.184
Antigüedad: 13 años, 3 meses
Puntos: 209
Respuesta: Contenido de un txt a cadena php

en efecto amigo, si lo tienes en el medio del string, TRIM no lo borrará, tendrás que usar hacer algo así
Código PHP:

// replace CRLF's with spaces
$string str_replace("\r\n"" "$my_string);

// or just delete the CRLF's (by replacing them with nothing)
$string str_replace("\r\n"""$my_string); 
__________________
aconcaguaestudio.com