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…”
Threw this together, you could rename the function if need be.
Prints this:
EDIT: I don’t know why I posted the results like that, I was looking over the code and it hit me that I didn’t do anything with the substr.. Above is the amended code