Delete break spaces php

stsights

New Member
Messages
159
Reaction score
0
Points
0
hi I have this text
Saldo Real
197.66
Saldo
Promocional 1
427.94
Fecha de
Vencimiento
30 / 08 / 2028
And I want to convert it to

Saldo Real 197.66 Saldo Promocional 1 427.94 Fecha de vencimiento 30/08/2008
because this text I sent it via url and when I sent it I have the error
Warning:
file(http://example.com/index.php?Asaldo...13+/+09+/+2036&foo=9724&d=1199298333.94:mdzvt)
[function.file]: failed to open stream: HTTP request failed!
And i think that error is because I have the breaks line between each line, how
can I fix this??

Thank you to all
 

garrettroyce

Community Support
Community Support
Messages
5,611
Reaction score
249
Points
63
I believe free users are not allowed to open remote files like this. I don't think newlines have anything to do with it.

But, to answer your question str_replace("\n", ' ', $string);
 
Top