RE: [PHP] trim...

From: Date: Wed, 26 Nov 2003 17:20:10 +0000
Subject: RE: [PHP] trim...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-171102@lists.php.net to get a copy of this message
Hi, > > $body = " > > <p>blurb blah > > <p>happy days > > <p>end of text"; > > > > $body = trim($body); > > > > $body now should output: > > "<p>blurb blah\n<p>happy days\n<p>end of text" but it > > doesn't...? does trim($body, "0x0A") fix your problem? Do you want to strip everything and leave \n in there? -Dan Joseph

« previous php.general (#171102) next »