Re: [PHP] converting str with \n to one line str??

2001-08-21 Thread David Robley
Til: Jens Cc: [EMAIL PROTECTED] Emne: Re: [PHP] converting str with \n to one line str?? You could use str_replace(). -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Mon, 20 Aug 2001 20:15:54 +0200 Jens [EMAIL PROTECTED] wrote: When I use

RE: [PHP] converting str with \n to one line str??

2001-08-21 Thread Dave
: [EMAIL PROTECTED] Emne: Re: [PHP] converting str with \n to one line str?? You could use str_replace(). -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Mon, 20 Aug 2001 20:15:54 +0200 Jens [EMAIL PROTECTED] wrote: When I use Javascript with PHP i run into one

Re: [PHP] converting str with \n to one line str??

2001-08-20 Thread Artwithin
use nl2br() http://www.php.net/nl2br or, alternatively, use a regex to strip out the newlines hope this helps. - Original Message - From: Jens [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 20, 2001 11:15 Subject: [PHP] converting str with \n to one line str?? When I

Re: [PHP] converting str with \n to one line str??

2001-08-20 Thread Tyler Longren
You could use str_replace(). -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Mon, 20 Aug 2001 20:15:54 +0200 Jens [EMAIL PROTECTED] wrote: When I use Javascript with PHP i run into one problem. When I get the data i need from the database it often has