Ver Mensaje Individual
  #4 (permalink)  
Antiguo 17/10/2008, 22:14
Avatar de pato12
pato12
 
Fecha de Ingreso: septiembre-2007
Ubicación: Salta
Mensajes: 1.620
Antigüedad: 16 años, 7 meses
Puntos: 101
Respuesta: Sacar saltos de linea

Hola,
Ninguna de las respuestas me funcionarion.
Yo saco el texto de la BD:
Cita:
Simona
<br />
<br />you`re getting older <br />
<br />
your journey`s been <br />
<br />
etched on your skin <br />
<br />
<br />
<br />
simona <br />
<br />
wish i had know that <br />
<br />
what seemed so strong <br />
<br />
has been and gone <br />
<br />
<br />
<br />
(coro) <br />
<br />
i will call you up every saturday <br />
<br />
night and e both stayed out til <br />
<br />
the morning light and we sang: <br />
<br />
here we go again <br />
<br />
and thought time goes by <br />
<br />
i wil always be <br />
<br />
in a club with you <br />
<br />
in 1973 <br />
<br />
singin here we go again <br />
<br />
<br />
<br />
simona <br />
<br />
wish i was sober <br />
<br />
so i could see clearly now <br />
<br />
the rain has gone <br />
<br />
<br />
<br />
simona <br />
<br />
i guess its over <br />
<br />
my memory plays our tune <br />
<br />
the same old song <br />
<br />
<br />
<br />
(coro) <br />
<br />
i will call you up every saturday <br />
<br />
night and e both stayed out til <br />
<br />
the morning light and we sang: <br />
<br />
here we go again <br />
<br />
and thought time goes by <br />
<br />
i wil always be <br />
<br />
in a club with you <br />
<br />
in 1973 <br />
<br />
singin here we go again <br />
<br />
<br />
<br />
(coro) <br />
<br />
i will call you up every saturday <br />
<br />
night and e both stayed out til <br />
<br />
the morning light and we sang: <br />
<br />
here we go again <br />
<br />
and thought time goes by <br />
<br />
i wil always be <br />
<br />
in a club with you <br />
<br />
in 1973 <br />
<br />
singin here we go again <br />
<br />
<br />
<br />
(coro) <br />
<br />
i will call you up every saturday <br />
<br />
night and e both stayed out til <br />
<br />
the morning light and we sang: <br />
<br />
here we go again <br />
<br />
and thought time goes by <br />
<br />
i wil always be <br />
<br />
in a club with you <br />
<br />
in 1973 <br />
<br />
singin here we go again <br />
<br />
<br />
<br />
i wil always be <br />
<br />
in a club with you <br />
<br />
in 1973 <br />
<br />
singin here we go again <br />
<br />
Y quiero sacarle los saltos de linea (no el <br />).
Pero si ago haci, sin sacarlo de la bd me anda:
Código PHP:
$text="Simona
<br />
<br />you`re getting older <br />
<br />
your journey`s been <br />
<br />
etched on your skin <br />
<br />
<br />
<br />
simona <br />
<br />
wish i had know that <br />
<br />
what seemed so strong <br />
<br />
has been and gone <br />
<br />
<br />
<br />
(coro) <br />
<br />
i will call you up every saturday <br />
<br />
night and e both stayed out til <br />
<br />
the morning light and we sang: <br />
<br />
here we go again <br />
<br />
and thought time goes by <br />
<br />
i wil always be <br />
<br />
in a club with you <br />
<br />
in 1973 <br />
<br />
singin here we go again <br />
<br />
<br />
<br />
simona <br />
<br />
wish i was sober <br />
<br />
so i could see clearly now <br />
<br />
the rain has gone <br />
<br />
<br />
<br />
simona <br />
<br />
i guess its over <br />
<br />
my memory plays our tune <br />
<br />
the same old song <br />
<br />
<br />
<br />
(coro) <br />
<br />
i will call you up every saturday <br />
<br />
night and e both stayed out til <br />
<br />
the morning light and we sang: <br />
<br />
here we go again <br />
<br />
and thought time goes by <br />
<br />
i wil always be <br />
<br />
in a club with you <br />
<br />
in 1973 <br />
<br />
singin here we go again <br />
<br />
<br />
<br />
(coro) <br />
<br />
i will call you up every saturday <br />
<br />
night and e both stayed out til <br />
<br />
the morning light and we sang: <br />
<br />
here we go again <br />
<br />
and thought time goes by <br />
<br />
i wil always be <br />
<br />
in a club with you <br />
<br />
in 1973 <br />
<br />
singin here we go again <br />
<br />
<br />
<br />
(coro) <br />
<br />
i will call you up every saturday <br />
<br />
night and e both stayed out til <br />
<br />
the morning light and we sang: <br />
<br />
here we go again <br />
<br />
and thought time goes by <br />
<br />
i wil always be <br />
<br />
in a club with you <br />
<br />
in 1973 <br />
<br />
singin here we go again <br />
<br />
<br />
<br />
i wil always be <br />
<br />
in a club with you <br />
<br />
in 1973 <br />
<br />
singin here we go again <br />
<br />"
;
$text preg_replace('/[\r?\n]+/'''$text);  
echo 
$text
¿Porque?
Graicas
aslu2
__________________
Half Music - www.halfmusic.com