Welcome to Server Circle. It's a friendly site and all levels of experience are welcome. Be aware that we use cookies for your login.
Server Circle - Ask questions about Servers and get answers from experts.
Beta (0.17 sec)
Stripping newlines from a PHP variable

Vardump isn't removing them and I've tried /r and /n.

Any thoughts ? Thanks.
Asked by:
JimmyC
945 points
 Report Abuse
 Share Page - Category: Shell Scripting - Tags: Stripping newlines from a PHP variable
 Enter your response
Please use Pastie.org to paste lengthy code or to fix formatting issues with code
  • Responses in reverse (1)

Changing the output to a new variable and them using "trim" with a "\n" bypassed vardump and it worked in the end !

Response by:
JimmyC
945 points


  • Related Questions
About Us : Contact Us : Etiquette : Terms : CDN Failover : ShorterURL : CDN Fallback : © 2013 Server Circle