PHP: Remove blank line before text

Posted by Bailey on Stack Overflow See other posts from Stack Overflow or by Bailey
Published on 2012-09-04T03:28:36Z Indexed on 2012/09/04 3:38 UTC
Read the original article Hit count: 117

Filed under:
|
|

Occasionally, my email-to-support-ticket system catches an extra line break before the message itself, thus my messages look like this:

"

Hello. I have been wondering if y..."

What can I use to get rid of that line before the text? It is on random occasion due to email providers and the way they format their emails using mime. I have already tried the trim functions but no luck. (Yes, I also tried ltrim)

Once processed it should look like:

"Hello. I have been wondering if y..."

© Stack Overflow or respective owner

Related posts about php

Related posts about line-breaks