Formatting text received via api

Posted by greenFrog on Stack Overflow See other posts from Stack Overflow or by greenFrog
Published on 2010-03-09T03:47:06Z Indexed on 2010/03/09 3:51 UTC
Read the original article Hit count: 148

Filed under:

I get text via api and sometimes the text can be like so:

hello
world!
How are you?

But I do need the text to be like this:

hello world! How are you?

How to do that?

© Stack Overflow or respective owner

Related posts about php